-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Frenken, S.H. (Sander)
committed
Jan 3, 2025
1 parent
6838f4a
commit a7093f3
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Check Current Origin | ||
const from = 'sanderfrenken.github.io' | ||
const to = 'liberatedpixelcup.github.io' | ||
const repo = 'Universal-LPC-Spritesheet-Character-Generator' | ||
if (window.location.host === from) { | ||
const protocol = window.location.protocol | ||
const path = (window.location.pathname === '/' || window.location.pathname === '') ? '/' + repo + '/' : window.location.pathname | ||
const search = window.location.search | ||
const hash = window.location.hash | ||
const redirectTo = protocol + '//' + to + path + search + hash | ||
location.href = redirectTo | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters