mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix ignored elements function
This commit is contained in:
parent
4ad583e10f
commit
0ea9fb20e5
1 changed files with 4 additions and 6 deletions
|
|
@ -1257,16 +1257,14 @@ cipObserverHelper.getId = function(target) {
|
|||
};
|
||||
|
||||
cipObserverHelper.ignoredElement = function(target) {
|
||||
// Ignore SVG elements
|
||||
if (target.nodeName === 'svg' ||
|
||||
target.nodeName === 'g' ||
|
||||
(target.parentNode &&
|
||||
(target.parentNode.nodeName === 'svg' || target.parentNode.nodeName === 'g'))) {
|
||||
// Ignore elements that do not have a className (including SVG)
|
||||
if (typeof target.className !== 'string') {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Ignore KeePassXC-Browser classes
|
||||
if (target.className && (target.className.includes('kpxc') || target.className.includes('ui-helper'))) {
|
||||
if (target.className && target.className !== undefined &&
|
||||
(target.className.includes('kpxc') || target.className.includes('ui-helper'))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue