summaryrefslogtreecommitdiffstats
path: root/content_script.js
diff options
context:
space:
mode:
authornyuszika7h <nyuszika7h@gmail.com>2020-10-27 23:08:26 +0100
committernyuszika7h <nyuszika7h@gmail.com>2020-10-27 23:08:26 +0100
commit481551e5fba68c6ae2641b86703353180fa86761 (patch)
treee970486fcc9392c00e7407eb8a7421c7d130e8aa /content_script.js
parentMerge pull request #13 from erjanmx/fix-readme-typo (diff)
downloadwidevine-l3-decryptor-481551e5fba68c6ae2641b86703353180fa86761.tar
widevine-l3-decryptor-481551e5fba68c6ae2641b86703353180fa86761.tar.gz
widevine-l3-decryptor-481551e5fba68c6ae2641b86703353180fa86761.tar.bz2
widevine-l3-decryptor-481551e5fba68c6ae2641b86703353180fa86761.tar.lz
widevine-l3-decryptor-481551e5fba68c6ae2641b86703353180fa86761.tar.xz
widevine-l3-decryptor-481551e5fba68c6ae2641b86703353180fa86761.tar.zst
widevine-l3-decryptor-481551e5fba68c6ae2641b86703353180fa86761.zip
Diffstat (limited to 'content_script.js')
-rw-r--r--content_script.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/content_script.js b/content_script.js
index ad0992d..d62d550 100644
--- a/content_script.js
+++ b/content_script.js
@@ -2,9 +2,9 @@ injectScripts();
async function injectScripts()
{
- await injectScript('lib/pbf.3.0.5.min.js');
- await injectScript('lib/cryptojs-aes_0.2.0.min.js');
- await injectScript('protobuf-generated/license_protocol.proto.js');
+ await injectScript('lib/pbf.3.0.5.min.js');
+ await injectScript('lib/cryptojs-aes_0.2.0.min.js');
+ await injectScript('protobuf-generated/license_protocol.proto.js');
await injectScript('content_key_decryption.js');
@@ -13,14 +13,14 @@ async function injectScripts()
function injectScript(scriptName)
{
- return new Promise(function(resolve, reject)
- {
- var s = document.createElement('script');
- s.src = chrome.extension.getURL(scriptName);
- s.onload = function() {
- this.parentNode.removeChild(this);
- resolve(true);
- };
- (document.head||document.documentElement).appendChild(s);
- });
-} \ No newline at end of file
+ return new Promise(function(resolve, reject)
+ {
+ var s = document.createElement('script');
+ s.src = chrome.extension.getURL(scriptName);
+ s.onload = function() {
+ this.parentNode.removeChild(this);
+ resolve(true);
+ };
+ (document.head||document.documentElement).appendChild(s);
+ });
+}