listen on plugin msg

pull/3094/head
yann300 7 years ago
parent 7ebc3e9d26
commit b6248a577f
  1. 5
      src/pluginManager.js

@ -46,6 +46,11 @@ class PluginManager {
})) }))
} }
}) })
window.addEventListener('message', (event) => {
if (event.type === 'message' && this.inFocus === event.origin) {
}
}, false)
} }
register (desc, content) { register (desc, content) {
this.plugins[desc.title] = {content, origin: desc.url} this.plugins[desc.title] = {content, origin: desc.url}

Loading…
Cancel
Save