mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Adds check for variable
This commit is contained in:
parent
47824604f6
commit
4466e5e383
1 changed files with 5 additions and 3 deletions
|
|
@ -1041,7 +1041,9 @@ keepass.reconnect = function(callback, tab) {
|
|||
};
|
||||
|
||||
keepass.updatePopup = function(iconType) {
|
||||
const data = page.tabs[page.currentTabId].stack[page.tabs[page.currentTabId].stack.length - 1];
|
||||
data.iconType = iconType;
|
||||
browserAction.show(null, {'id': page.currentTabId});
|
||||
if (page && page.tabs.length > 0) {
|
||||
const data = page.tabs[page.currentTabId].stack[page.tabs[page.currentTabId].stack.length - 1];
|
||||
data.iconType = iconType;
|
||||
browserAction.show(null, {'id': page.currentTabId});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue