mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-13 22:58:34 +00:00
fix: test
This commit is contained in:
parent
cea33783a2
commit
0baa8383f2
@ -227,15 +227,17 @@ const processMessage = (message) => {
|
||||
}
|
||||
};
|
||||
|
||||
self.onconnect = function (e) {
|
||||
// the incoming port
|
||||
const port = e.ports[0];
|
||||
allPorts.push(port);
|
||||
port.addEventListener('message', function (e) {
|
||||
processMessage(e.data);
|
||||
});
|
||||
port.start(); // Required when using addEventListener. Otherwise called implicitly by onmessage setter.
|
||||
};
|
||||
if (typeof self !== 'undefined') {
|
||||
self.onconnect = function (e) {
|
||||
// the incoming port
|
||||
const port = e.ports[0];
|
||||
allPorts.push(port);
|
||||
port.addEventListener('message', function (e) {
|
||||
processMessage(e.data);
|
||||
});
|
||||
port.start(); // Required when using addEventListener. Otherwise called implicitly by onmessage setter.
|
||||
};
|
||||
}
|
||||
|
||||
function createClock(
|
||||
callback, // called slightly before each cycle
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user