From ef893337870a90bc93852e52b636f8d66b517c1b Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Fri, 3 Apr 2015 15:43:59 +0100 Subject: [PATCH] Remove js redirect. --- web/js/botania.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/web/js/botania.js b/web/js/botania.js index 537977b5d..f9dff929e 100644 --- a/web/js/botania.js +++ b/web/js/botania.js @@ -2,15 +2,6 @@ const censorChars = 'abcdefghijklmnopqrstuvwxyz'; var animating = false; $(function() { - var location = document.location; - var ignoreRegex = /(?:(?:http:\/\/localhost\/xampp\/mod\/Botania)|(?:http:\/\/(?:www\.)?botaniamod.net))(\/.*)/; - var elseRegex = /.+(\/.*)$/; - - if(elseRegex.test(location) && !ignoreRegex.test(location)) { - var elseMatch = elseRegex.exec(location); - document.location = 'http://botaniamod.net' + elseMatch[1]; - } - setInterval(changeCensor, 100); var hash = document.location.hash.substring(1);