Also ignore domready for about: urls

This commit is contained in:
Kovid Goyal 2022-04-02 13:08:54 +05:30
parent 4e72452688
commit a0c9005d69
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -21,7 +21,7 @@
send_msg({type: 'print', text: text}); send_msg({type: 'print', text: text});
} }
if (!document.location.href.startsWith('chrome-error://')) { if (!document.location.href.startsWith('chrome-error:') && !document.location.href.startsWith('about:')) {
send_msg({type: 'domready', html: new XMLSerializer().serializeToString(document)}); send_msg({type: 'domready', html: new XMLSerializer().serializeToString(document)});
} }
})(); })();