mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
@@ -188,8 +188,10 @@ chrome.runtime.sendMessage({}, function(response) {
|
||||
if (blacklisted)
|
||||
return;
|
||||
|
||||
window.onload = () => initializeNow(document);
|
||||
if (document && document.doctype.name == "html") {
|
||||
window.onload = () => {
|
||||
initializeNow(window.document)
|
||||
};
|
||||
if (document && document.doctype && document.doctype.name == "html") {
|
||||
if (document.readyState === "complete") {
|
||||
initializeNow(document);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user