Skip to content

Commit 94cbe1f

Browse files
committed
Forgot to undo some changes
1 parent ff9e308 commit 94cbe1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/sandbox/runtime/worker-runtime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let completionPort;
22

33
self.onmessage = function(e) {
4-
if (e.data.type === 'console') {
4+
if (e.data === 'console') {
55
// Define the console object
66
self.console = {
77
_port: e.ports[0], // Remember the port we log to
@@ -25,7 +25,7 @@ self.onmessage = function(e) {
2525
}
2626
}
2727

28-
if (e.data.type === 'completion') {
28+
if (e.data === 'completion') {
2929
completionPort = e.ports[0];
3030
}
3131
};

0 commit comments

Comments
 (0)