Remove redirect JavaScript
This commit is contained in:
parent
dcbe035f9a
commit
37bf0ffb4e
|
@ -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…
Reference in New Issue