summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2019-10-01 22:41:39 +0200
committerhackademix2019-10-01 22:41:39 +0200
commit0940fc84b3c9387b9eb371592625ab2d7ab259e2 (patch)
tree49be5abbfa6d2fecbc94e24fe004352065725c2a /src
parentcaa16365c1d61a48d23ef4401d004b492dc3ea3b (diff)
downloadnoscript-0940fc84b3c9387b9eb371592625ab2d7ab259e2.tar.gz
noscript-0940fc84b3c9387b9eb371592625ab2d7ab259e2.tar.xz
noscript-0940fc84b3c9387b9eb371592625ab2d7ab259e2.zip
"use strict" in SyncMessage.js
Diffstat (limited to 'src')
-rw-r--r--src/lib/SyncMessage.js3
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)}`;