mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix using invalid parameters with MutationObserver
This commit is contained in:
parent
74dbb0d8e8
commit
43d0dc528f
1 changed files with 6 additions and 2 deletions
|
|
@ -431,8 +431,12 @@ kpxcUI.createPageObserver = function() {
|
|||
}
|
||||
});
|
||||
|
||||
kpxcUI.pageObserver.observe(document.documentElement, OBSERVER_OPTIONS);
|
||||
kpxcUI.pageObserver.observe(document.body, OBSERVER_OPTIONS);
|
||||
if (document?.documentElement) {
|
||||
kpxcUI.pageObserver.observe(document.documentElement, OBSERVER_OPTIONS);
|
||||
}
|
||||
if (document?.body) {
|
||||
kpxcUI.pageObserver.observe(document.body, OBSERVER_OPTIONS);
|
||||
}
|
||||
};
|
||||
|
||||
const DOMRectToArray = function(domRect) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue