rpwoodbu / mosh-chrome

Mosh for Chrome
GNU General Public License v3.0
371 stars 59 forks source link

Context menu not created. #195

Open dsouzae opened 5 years ago

dsouzae commented 5 years ago

I am using Mosh (dev) ChromeOS app 0.5.5. The context menu no longer shows up after a recent update - not sure if it's related to Chrome or Mosh app

I noticed the Chrome DevTools console reports:

_generated_background_page.html:1 Unchecked runtime.lastError while running contextMenus.create: Cannot create item with duplicate id new_session at chrome-extension://hmgggebkhjjkiimkjlknpdgapncghehh/background.js:63:21

Issue happens on both ChromeOS and Windows desktop.

vapier commented 3 years ago

i think the code needs to call chrome.contextMenus.removeAll() when reloading the bg page. Chrome likes to keep the entries sticky otherwise.