Source code

Revision control

Copy as Markdown

Other Tools

/* Any copyright is dedicated to the Public Domain.
"use strict";
console.log("[WORKER] started", globalThis.location.toString(), globalThis);
globalThis.onmessage = function (e) {
const { type, message } = e.data;
if (type === "log-in-worker") {
// Printing `e` so we can check that we have an object and not a stringified version
console.log("[WORKER]", message, e);
}
};