mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Small refactor
This commit is contained in:
@@ -13,7 +13,7 @@ export function init() {
|
||||
[file: string]: string;
|
||||
}, options?: MinifyOptions): Promise<MinifyOutput> {
|
||||
|
||||
if (!!window.SharedWorker) {
|
||||
if (is_browser && !!window.SharedWorker) {
|
||||
if (!worker) {
|
||||
worker = new SharedWorker(new URL('./terserWorker.ts', import.meta.url), { type: "module" })
|
||||
worker.port.onmessage = (e: MessageEvent<any>) => {
|
||||
|
||||
Reference in New Issue
Block a user