From b3ee0fb0331ad0f559d0a751a0ccf0bf4140c2a5 Mon Sep 17 00:00:00 2001 From: LEGALISE_PIRACY Date: Tue, 12 Mar 2024 01:47:47 +0000 Subject: [PATCH] Update js/main.js --- js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index d34728e9..c77b2bfc 100644 --- a/js/main.js +++ b/js/main.js @@ -148,7 +148,8 @@ getCurrentTime(); setInterval(getCurrentTime, 900); $(function() { $('.game').on('error', function() { $(this).attr('src', decodeURIComponent(atob('aHR0cHM6Ly93ZWIuYXJjaGl2ZS5vcmcvd2ViLzIwMjQwMzEyMDA1NTQ3aWZfL2h0dHBzOi8vbmF0ZS1nYW1lcy5jb20vc3RhdGljL2ltYWdlLXBsYWNlaG9sZGVyLnN2Zw=='))); }); }); -$(document).ready(function(){$("#webicon").attr("placeholder",window.location.href);}); +$(document).ready(function(){if(!window.location.href.startsWith('about:')){$("#webicon").attr("placeholder",window.location.href.replace(/\/[^\/]*$/,'/'));}}); + let cookieConsentScript = document.createElement("script"); cookieConsentScript.src = "/js/cookieConsent.js";