Add mutation observer when documentElement does not exist yet
This commit is contained in:
parent
57ef3b9b5b
commit
64fb73df3e
@ -41,6 +41,7 @@ window._qutebrowser.stylesheet = (function() {
|
|||||||
// https://github.com/openstyles/stylus/blob/1.1.4.2/content/apply.js#L235-L355
|
// https://github.com/openstyles/stylus/blob/1.1.4.2/content/apply.js#L235-L355
|
||||||
function watch_root() {
|
function watch_root() {
|
||||||
if (!document.documentElement) {
|
if (!document.documentElement) {
|
||||||
|
root_observer.observe(document, {"childList": true});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user