mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix isFirefox() part 2 (#2725)
This commit is contained in:
commit
bb1da8c64d
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue