Skip to content

Commit a43cd07

Browse files
committed
Update worker-channel.js
1 parent a7ee4c2 commit a43cd07

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

worker/worker-channel.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,17 @@ async function setupWorkerChannel() {
5050
});
5151

5252

53-
if (getStorage('workerDevLogs')) {
53+
window.addEventListener('load', () => {
5454

55-
workerChannel.postMessage({
56-
type: 'enableDevLogs'
57-
});
55+
if (getStorage('workerDevLogs')) {
56+
57+
workerChannel.postMessage({
58+
type: 'enableDevLogs'
59+
});
60+
61+
}
5862

59-
}
63+
});
6064

6165
}
6266

0 commit comments

Comments
 (0)