Remove redirect JavaScript
This commit is contained in:
parent
0f53c7748f
commit
7fde930fdb
@ -1,12 +0,0 @@
|
|||||||
const currentUrl = window.location.href;
|
|
||||||
const oldDomain = 'leilukin.neocities.org';
|
|
||||||
const newDomain = 'leilukin.com';
|
|
||||||
|
|
||||||
const redirectUrl = (oldStr, newStr) => {
|
|
||||||
if (currentUrl.includes(oldStr)) {
|
|
||||||
const newUrl = currentUrl.replace(oldStr, newStr);
|
|
||||||
location.replace(newUrl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
redirectUrl(oldDomain, newDomain);
|
|
Loading…
x
Reference in New Issue
Block a user