From ef83390a4d5f8fa067c88e6d397a0033cc5bea4f Mon Sep 17 00:00:00 2001 From: kaffem <29717789+kaffem@users.noreply.github.com> Date: Thu, 20 Aug 2020 16:15:35 +0200 Subject: [PATCH] removed unnecessary functionality --- utils/aniwatchCore.js | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/utils/aniwatchCore.js b/utils/aniwatchCore.js index 79a67f2..0b98875 100644 --- a/utils/aniwatchCore.js +++ b/utils/aniwatchCore.js @@ -68,20 +68,9 @@ let __loop = setInterval(() => { }, 100); function awaitPathnameChange() { - let preLoader = document.getElementById('preloader'); - - if (typeof preLoader === 'undefined') { - return; - } - - let loop = setInterval(() => { - if (preLoader.style.display === "none") { - clearInterval(loop); - __afterPathnameChangeScripts.forEach(script => { - if (window.location.pathname.match(script.pattern)) { - script.function(); - } - }) + __afterPathnameChangeScripts.forEach(script => { + if (window.location.pathname.match(script.pattern)) { + script.function(); } - }, 100); + }) }