diff --git a/src/assets/js/redirect.js b/src/assets/js/redirect.js deleted file mode 100644 index 4862036c..00000000 --- a/src/assets/js/redirect.js +++ /dev/null @@ -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); \ No newline at end of file