diff options
Diffstat (limited to 'src/lib')
-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)}`; |