chore: fixes
This commit is contained in:
parent
6468306253
commit
074150247e
2 changed files with 0 additions and 20 deletions
|
|
@ -1,19 +0,0 @@
|
|||
// dsi-3ds-redirect.js
|
||||
|
||||
(function () {
|
||||
const legacyURL = "http://www.veltron.net/legacy.html";
|
||||
|
||||
// Detect Nintendo DSi / 3DS browsers
|
||||
const ua = navigator.userAgent || "";
|
||||
|
||||
const isDSiOr3DS =
|
||||
ua.includes("Nintendo DSi") ||
|
||||
ua.includes("Nintendo 3DS");
|
||||
|
||||
const isAlreadyLegacy = window.location.href === legacyURL;
|
||||
|
||||
// Redirect if on DSi/3DS and not already on the legacy page
|
||||
if (isDSiOr3DS && !isAlreadyLegacy) {
|
||||
window.location.href = legacyURL;
|
||||
}
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue