mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[start page] catch message from embedded plugins
This commit is contained in:
@ -235,3 +235,9 @@ $(document).on('keydown', function(e){
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('message', e => {
|
||||
let msg = window.JSON.parse(e.data);
|
||||
if ( msg.type == 'plugin' )
|
||||
sdk.fire('on_native_message', Object.values(msg.data));
|
||||
}, false);
|
||||
|
||||
Reference in New Issue
Block a user