mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
16 lines
286 B
JavaScript
16 lines
286 B
JavaScript
(function () {
|
|
function sendMessage() {
|
|
let frame = window.frames['content'];
|
|
if (frame)
|
|
frame.postMessage({ type: "proctoringReady" });
|
|
}
|
|
|
|
window.addEventListener("message", function (e)
|
|
{
|
|
if (e.data.indexOf("proctoringReady_") === 0)
|
|
{
|
|
sendMessage();
|
|
}
|
|
});
|
|
})();
|