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";