Skip to content

Commit

Permalink
Found issue
Browse files Browse the repository at this point in the history
  • Loading branch information
expitau committed May 1, 2024
1 parent a07bc0a commit 8324e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/bookmarklet-iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 8324e4f

Please sign in to comment.