Skip to content

Commit c399f75

Browse files
committed
Fix handling binary messages which expect a response
1 parent 4e95cde commit c399f75

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

webgpu/link/link.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,11 @@ class CrossLink {
390390
if (typeof event.data === 'string') {
391391
data = JSON.parse(event.data);
392392
}
393-
request_id = data.request_id;
394-
result_action = data.result_action || 'send';
395393
}
396394

395+
request_id = data.request_id;
396+
result_action = data.result_action || 'send';
397+
397398
let obj = data.id ? this.objects[data.id] : window;
398399
// console.log('onMessage', data, obj);
399400

0 commit comments

Comments
 (0)