- commit
- 3cc557674807a95d644d8858b2813ac36964e4bd
- parent
- d8a8816ac913cb25f7d26090f37168791e45a370
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-04-24 07:04
chrome: tab context menu is not supported
Diffstat
| M | bg.js | 10 | +++++++++- |
1 files changed, 9 insertions, 1 deletions
diff --git a/bg.js b/bg.js
@@ -5,9 +5,17 @@ import { pushBookmark, updateCount } from './shared.js';
5 5 chrome.contextMenus.create({
6 6 id: 'read-later',
7 7 title: 'read later',
8 -1 contexts: ['page', 'selection', 'editable', 'image', 'tab'],
-1 8 contexts: ['page', 'selection', 'editable', 'image'],
9 9 });
10 10
-1 11 try {
-1 12 chrome.contextMenus.create({
-1 13 id: 'read-later',
-1 14 title: 'read later',
-1 15 contexts: ['tab'],
-1 16 });
-1 17 } catch {}
-1 18
11 19 chrome.contextMenus.create({
12 20 id: 'read-later-link',
13 21 title: 'read link later',