mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #222 from keepassxreboot/add_value_check
Add check for newValue
This commit is contained in:
commit
f359e4af55
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue