diff --git a/keepassxc-browser/keepassxc-browser.js b/keepassxc-browser/keepassxc-browser.js index bf7ae4b..75cb90b 100755 --- a/keepassxc-browser/keepassxc-browser.js +++ b/keepassxc-browser/keepassxc-browser.js @@ -1335,7 +1335,7 @@ let observer = new MutationObserver(function(mutations, observer) { // Handle attributes only if CSS display is modified if (mut.type === 'attributes') { const newValue = mut.target.getAttribute(mut.attributeName); - if (newValue.includes('display') || newValue.includes('z-index')) { + if (newValue && (newValue.includes('display') || newValue.includes('z-index'))) { if (mut.target.style.display !== 'none') { cipObserverHelper.handleObserverAdd(mut.target); } else {