summaryrefslogtreecommitdiff
path: root/qutebrowser/javascript/stylesheet.js
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/javascript/stylesheet.js')
-rw-r--r--qutebrowser/javascript/stylesheet.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/qutebrowser/javascript/stylesheet.js b/qutebrowser/javascript/stylesheet.js
index 508585c74..21a62b25d 100644
--- a/qutebrowser/javascript/stylesheet.js
+++ b/qutebrowser/javascript/stylesheet.js
@@ -92,6 +92,7 @@ window._qutebrowser.stylesheet = (function() {
create_style();
return;
}
+
const iter = document.createNodeIterator(document,
NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_ELEMENT);
let node;
@@ -101,6 +102,7 @@ window._qutebrowser.stylesheet = (function() {
return;
}
}
+
const style_observer = new MutationObserver((mutations) => {
for (const mutation of mutations) {
const nodes = mutation.addedNodes;