aboutsummaryrefslogtreecommitdiff
path: root/ext/js/background
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-06-13 18:12:44 -0700
committerGitHub <noreply@github.com>2024-06-14 01:12:44 +0000
commita5a79553a85b1337071d534497509036f9448dcc (patch)
treeb4bcd69f7a80f7c775e32b397520e6bae622e7fb /ext/js/background
parent850d390c808bd66ac1dfd6ffaed7b5c663e6cd45 (diff)
Handle Unchecked runtime.lastError: Cannot create item with duplicate id yomitan_lookup (#1050)
Diffstat (limited to 'ext/js/background')
-rw-r--r--ext/js/background/backend.js2
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'});