Skip to content

Commit

Permalink
i HATE trailing slashes 😡😡😡😡
Browse files Browse the repository at this point in the history
skuqre committed Aug 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8f6a137 commit 990a260
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/scripts/tutorial.js
Original file line number Diff line number Diff line change
@@ -1727,12 +1727,14 @@ if (document.getElementById("tutorial") !== null) {
}
}

if (location.href.includes("nikke-font-generator/dialogue#start-tutorial") ||
location.href.includes("nikke-font-generator/dialogue/#start-tutorial")) {
startDialogueTutorial();
} else if (location.href.includes("nikke-font-generator/blabla#start-tutorial") ||
location.href.includes("nikke-font-generator/blabla/#start-tutorial")) {
startBlablaTutorial();
var hash = window.location.hash;

if (hash === "#start-tutorial") {
if (location.href.includes("/nikke-font-generator/dialogue")) {
startDialogueTutorial();
} else if (location.href.includes("/nikke-font-generator/blabla")) {
startBlablaTutorial();
}
}

if (document.getElementById("error404")) {

0 comments on commit 990a260

Please sign in to comment.