diff --git a/cadmium-playercore-shim.js b/cadmium-playercore-shim.js index 11654f8..3eabbb4 100644 --- a/cadmium-playercore-shim.js +++ b/cadmium-playercore-shim.js @@ -1,4 +1,4 @@ -/* This script runs as a drop-in replacement of the original cadmium-playercore */ +// This script runs as a drop-in replacement of the original cadmium-playercore. This is not a content script. console.log("Netflix International script active!"); // promisify chrome storage API for easier chaining @@ -97,5 +97,5 @@ if (globalOptions.showAllTracks) { ) } -// run our patched copy of playercore -Function(cadmium_src)(); +// run our patched copy of playercore in a non-privileged context on the page +window.Function(cadmium_src)(); diff --git a/manifest.json b/manifest.json index cbbe56f..00c725d 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Netflix International", "description": "Displays all available Netflix audio tracks.", - "version": "2.0.1", + "version": "2.0.2", "author": "shirt", "browser_action": { "default_icon": "img/icon128.png"