Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 954dd32

Browse files
author
Andreas Hagen
committed
Vlt gehts ja
1 parent 96b791e commit 954dd32

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/index.js

-14
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,5 @@ global.Worker = function Worker(url) {
7373
this.terminate = () => {
7474
throw Error('Not Supported');
7575
};
76-
try {
77-
global.fetch(url)
78-
.then(r => r.text())
79-
.then(code => {
80-
let vars = 'var self=this,global=self';
81-
for (let k in scope) vars += `,${k}=self.${k}`;
82-
getScopeVar = eval('(function() {' + vars + '\n' + code + '\nreturn function(__){return eval(__)}})').call(scope);
83-
let q = messageQueue;
84-
messageQueue = null;
85-
q.forEach(this.postMessage);
86-
})
87-
.catch(e => { outside.emit('error', e); console.error(e); });
88-
} catch (err) { }
89-
9076

9177
};

0 commit comments

Comments
 (0)