Fix isFirefox() part 2 (#2725)

This commit is contained in:
Sami Vänttinen 2025-10-12 13:32:27 +03:00 committed by GitHub
commit bb1da8c64d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -518,7 +518,7 @@ page.getBaseDomainFromUrl = async function(hostname, url) {
const createContextMenuItem = function({ action, args, ...options }) {
return browser.contextMenus.create({
contexts: menuContexts,
contexts: page.menuContexts,
id: action,
...options
});

View file

@ -16,7 +16,7 @@ async function initSettings() {
});
const customLoginFieldsButton = document.body.querySelector('#settings #choose-custom-login-fields-button');
const isFirefox = browser.runtime.sendMessage({ action: 'is_firefox' });
const isFirefox = await browser.runtime.sendMessage({ action: 'is_firefox' });
if (isFirefox) {
customLoginFieldsButton.id = 'choose-custom-login-fields-button-moz';
}