How to use HTTPS in Javascript snippets? [closed]

When I tried to load the site, it doesn’t show up natively. So, there was an error in the console. The error stated that:-

Mixed Content: The page at ‘https://site.url/admin/appearance’ was loaded over HTTPS, but requested an insecure frame ‘http://site.url/frame?mode=2rat57aRFw’. This request has been blocked; the content must be served over HTTPS.

The error was shown in the javascript file on line 1 for the minified version. You can see the unminified js code here.