From 37bf0ffb4e1813264142f46c94bf2b9df8819b1e Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:39:47 +0800 Subject: [PATCH] Remove redirect JavaScript --- src/assets/js/redirect.js | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/assets/js/redirect.js 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