mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
Merge pull request #88 from teldosas/patch-1
Replace onLoad with addEventListener
This commit is contained in:
@@ -413,9 +413,9 @@ function initializeWhenReady(document) {
|
|||||||
if (isBlacklisted()) {
|
if (isBlacklisted()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.onload = () => {
|
window.addEventListener('load', () => {
|
||||||
initializeNow(window.document);
|
initializeNow(window.document);
|
||||||
};
|
});
|
||||||
if (document) {
|
if (document) {
|
||||||
if (document.readyState === "complete") {
|
if (document.readyState === "complete") {
|
||||||
initializeNow(document);
|
initializeNow(document);
|
||||||
|
Reference in New Issue
Block a user