You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Register to receive any events your extension is interested in each time the event page is loaded. The event page will be loaded once for each new version of your extension. After that it will only be loaded to deliver events you have registered for. This generally means that your event listeners should be added at the top level scope of the event page, otherwise they may not be available when the event page reloads.
怀疑是ES6 代码 转成 ES5 后,background.js里Chrome的事件监听函数不在顶层了,所以重启浏览器后,相关的事件(contextMenus.create等)都不会重新注册了.
把
直接写在initial()里试试?
The text was updated successfully, but these errors were encountered: