Created
May 17, 2025 11:00
-
-
Save Frag1k/1e360f1c7c36770317eab3c1bae1fe8c to your computer and use it in GitHub Desktop.
demo.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
scriptInjected(); | |
setTimeout(() => { | |
console.warn('done') | |
scriptCompleted(); | |
}, 2000); | |
})(); | |
function scriptInjected() { | |
window.postMessage({type: 'scriptInjected'}, '*'); | |
} | |
function scriptCompleted() { | |
window.postMessage({type: 'scriptCompleted'}, '*'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment