Fix isFirefox() part 2

This commit is contained in:
varjolintu 2025-10-12 09:17:34 +03:00
parent 8155f5c5a0
commit c0a587f89d
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';
}