mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Add check for newValue
This commit is contained in:
parent
6ba29a70f2
commit
7f9e2f64e8
1 changed files with 1 additions and 1 deletions
|
|
@ -1293,7 +1293,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