From 8324e4f6782ab8dd11afad026ffed23b4eaab9da Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 1 May 2024 00:30:05 +0000 Subject: [PATCH] Found issue --- web/bookmarklet-iframe.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/bookmarklet-iframe.html b/web/bookmarklet-iframe.html index 86badb8e..4d06c422 100644 --- a/web/bookmarklet-iframe.html +++ b/web/bookmarklet-iframe.html @@ -22,9 +22,9 @@ } function processDataFromWiki(data) { + console.log("Heartbeat received") if (!isActive) return; - console.log("Heartbeat received") if (data.type == 'heartbeat') { sendDataToWiki('heartbeatAck') lastHeartbeat = Date.now(); @@ -76,7 +76,7 @@ window.addEventListener('message', function (event) { if (!isActive) return; - if (event.origin == `http://${window.location.host}`) { + if (event.origin == `https://${window.location.host}`) { processDataFromWiki(JSON.parse(event.data)) return }