We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc3e8b commit a3c29cfCopy full SHA for a3c29cf
src/background.ts
@@ -88,8 +88,8 @@ import { clearTranslationsFactory } from './requests/backend/translations/clearT
88
// TODO: toggle it while switch tabs
89
// Configure context menu
90
cfg.onUpdate(
91
- ({ selectTranslator }) => {
92
- const isEnabled = selectTranslator.mode === 'contextMenu';
+ ({ selectTranslator: { enabled, mode } }) => {
+ const isEnabled = enabled && mode === 'contextMenu';
93
toggleTranslateItemInContextMenu(isEnabled);
94
},
95
['selectTranslator'],
0 commit comments