mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
Refactored bridge to support transferrables (e.g. typed array buffers) and added transferable param to postMessage for op codes
This commit is contained in:
@@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user