diff --git a/src/content_script.js b/src/content_script.js index 9f66686f..f6dc743f 100644 --- a/src/content_script.js +++ b/src/content_script.js @@ -546,12 +546,7 @@ async function CheckIfURLShouldBeBlocked() { // Cross-browser implementation of element.addEventListener() function addPassiveWindowOnloadListener() { - const activeOnloadFunction = window.onload; window.addEventListener("load", function() { - // window.onload = function () { - if (typeof activeOnloadFunction === "function") { - activeOnloadFunction(); - } CheckIfURLShouldBeBlocked(); }, false); }