Add mutation observer when documentElement does not exist yet

This commit is contained in:
Jay Kamat 2018-12-29 08:23:09 -08:00
parent 57ef3b9b5b
commit 64fb73df3e
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -41,6 +41,7 @@ window._qutebrowser.stylesheet = (function() {
// https://github.com/openstyles/stylus/blob/1.1.4.2/content/apply.js#L235-L355
function watch_root() {
if (!document.documentElement) {
root_observer.observe(document, {"childList": true});
return;
}