diff options
author | hackademix | 2019-10-01 22:41:39 +0200 |
---|---|---|
committer | hackademix | 2019-10-01 22:41:39 +0200 |
commit | 0940fc84b3c9387b9eb371592625ab2d7ab259e2 (patch) | |
tree | 49be5abbfa6d2fecbc94e24fe004352065725c2a /src/lib/SyncMessage.js | |
parent | caa16365c1d61a48d23ef4401d004b492dc3ea3b (diff) | |
download | noscript-0940fc84b3c9387b9eb371592625ab2d7ab259e2.tar.gz noscript-0940fc84b3c9387b9eb371592625ab2d7ab259e2.tar.xz noscript-0940fc84b3c9387b9eb371592625ab2d7ab259e2.zip |
"use strict" in SyncMessage.js
Diffstat (limited to 'src/lib/SyncMessage.js')
-rw-r--r-- | src/lib/SyncMessage.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/SyncMessage.js b/src/lib/SyncMessage.js index a34bbae..b9e5006 100644 --- a/src/lib/SyncMessage.js +++ b/src/lib/SyncMessage.js @@ -1,3 +1,4 @@ +"use strict"; (() => { let ENDPOINT_PREFIX = `https://sync-messages.invalid/${browser.extension.getURL("")}?`; let MOZILLA = "mozSystem" in XMLHttpRequest.prototype; @@ -116,7 +117,7 @@ let uuid = () => (Math.random() * Date.now()).toString(16); } let docUrl = document.URL; - browser.runtime.sendSyncMessage = sendSyncMessage = msg => { + browser.runtime.sendSyncMessage = msg => { let msgId = `${uuid()},${docUrl}`; let url = `${ENDPOINT_PREFIX}id=${encodeURIComponent(msgId)}` + `&url=${encodeURIComponent(docUrl)}`; |