Fix error in stylesheet.js on older QtWebEngine
This commit is contained in:
parent
ce1494e5ec
commit
b37517e55f
@ -96,8 +96,9 @@ window._qutebrowser.stylesheet = (function() {
|
|||||||
}
|
}
|
||||||
const style_observer = new MutationObserver((mutations) => {
|
const style_observer = new MutationObserver((mutations) => {
|
||||||
for (const mutation of mutations) {
|
for (const mutation of mutations) {
|
||||||
for (const added of mutation.addedNodes) {
|
const nodes = mutation.addedNodes;
|
||||||
if (check_style(added)) {
|
for (let i = 0; i < nodes.length; ++i) {
|
||||||
|
if (check_style(nodes[i])) {
|
||||||
create_style();
|
create_style();
|
||||||
style_observer.disconnect();
|
style_observer.disconnect();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user