Skip to content

Commit

Permalink
bugfixes to support FF for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
fvirdia committed Jan 26, 2025
1 parent abd3d31 commit 57f79c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "102.0"
"strict_min_version": "120.0"
}
}
}
18 changes: 12 additions & 6 deletions shared/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,21 @@ async function checkForSession(isManual = false) {
}

function createSummarizeMenuEntry() {
browser.contextMenus.create({
id: 'kagi-summarize',
title: 'Kagi Summarize',
contexts: ['link', 'page'], // Show the menu item when clicked on a link or elsewhere on page with no matching contexts
});
// FF Android does not support context menus
if (browser.contextMenus !== undefined) {
browser.contextMenus.create({
id: 'kagi-summarize',
title: 'Kagi Summarize',
contexts: ['link', 'page'], // Show the menu item when clicked on a link or elsewhere on page with no matching contexts
});
}
}

function removeSummarizeMenuEntry() {
browser.contextMenus.remove('kagi-summarize');
// FF Android does not support context menus
if (browser.contextMenus !== undefined) {
browser.contextMenus.remove('kagi-summarize');
}
}

async function applyHeader(isManual = false) {
Expand Down

0 comments on commit 57f79c2

Please sign in to comment.