diff options
author | James Maa <jmaa@berkeley.edu> | 2024-06-13 18:12:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 01:12:44 +0000 |
commit | a5a79553a85b1337071d534497509036f9448dcc (patch) | |
tree | b4bcd69f7a80f7c775e32b397520e6bae622e7fb | |
parent | 850d390c808bd66ac1dfd6ffaed7b5c663e6cd45 (diff) |
Handle Unchecked runtime.lastError: Cannot create item with duplicate id yomitan_lookup (#1050)
-rw-r--r-- | ext/js/background/backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 88912b70..57e934c5 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -1315,7 +1315,7 @@ export class Backend { id: 'yomitan_lookup', title: 'Lookup in Yomitan', contexts: ['selection'], - }); + }, () => this._checkLastError(chrome.runtime.lastError)); chrome.contextMenus.onClicked.addListener((info) => { if (info.selectionText) { this._sendMessageAllTabsIgnoreResponse({action: 'frontendScanSelectedText'}); |