diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-12-13 11:20:16 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-12-13 11:20:16 +0300 |
commit | 1887383027163ec45dc515ad0cb418089a14b9f0 (patch) | |
tree | 8901ca6c556845109a8304bf2a7491cfab3bf5f2 | |
parent | 0b10ef4c518147de0e4bc1da52fd19ea94f4b347 (diff) |
Fix mutation observer
-rw-r--r-- | src/js/Services/FormService.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/Services/FormService.js b/src/js/Services/FormService.js index a66c616..22e59a8 100644 --- a/src/js/Services/FormService.js +++ b/src/js/Services/FormService.js @@ -3,10 +3,10 @@ export default class FormService { getPasswordFields(rootNode = document) { let fields; try { - if(!rootNode || rootNode.querySelectorAll) rootNode = document; + if(!rootNode || !rootNode.querySelectorAll) rootNode = document; fields = rootNode.querySelectorAll('input[type="password"]'); } catch(e) { - console.error(e); + console.error(rootNode, e); return []; } |