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