mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-10-25 20:22:33 +00:00
Remove js redirect.
This commit is contained in:
1 parent
27ddbf5edc
commit
ef89333787
1 file changed
-9
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user