"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.webWorker = webWorker;
function webWorker(window, opt) {
    const worker = {
        start() {
            const { origin } = location;
            const url = `${origin}/_worker.js`;
            const worker = new Worker(url);
            return worker;
        },
    };
    return worker;
}
//# sourceMappingURL=worker.js.map