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
2019-01-29 13:17:37 -08:00
parent 3f93b029a4
commit fdfadef928
10 changed files with 30 additions and 41 deletions

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);
},
});