Refactored bridge to support transferrables (e.g. typed array buffers) and added transferable param to postMessage for op codes

This commit is contained in:
Brian Vaughn committed 2019-01-29 13:17:37 -08:00
1 parent 3f93b029a4
commit fdfadef928
10 files changed
+30 -41

No files matched your search

+2 -2
View File
@@ -46,8 +46,8 @@ initDevTools({
fn(data);
});
},
send(data) {
contentWindow.postMessage(data, '*');
send(event: string, payload: any, transferable?: Array<any>) {
contentWindow.postMessage({ event, payload }, '*', transferable);
},
});