Skip to content

Commit

Permalink
change path
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Jun 21, 2024
1 parent 14bf34f commit a77724a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torisetsu/src/jsMain/kotlin/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fun App() {
val quiz: Quiz by remember { mutableStateOf(ComposeQuiz()) }
val result: Result by remember { mutableStateOf(ComposeResult()) }

if (window.location.pathname in listOf("/", "")) {
if (window.location.pathname.replace("/", "") in listOf("torisetsu", "", "index.html")) {
when (currentPage) {
Page.TOP -> {
TopPage(
Expand All @@ -30,7 +30,7 @@ fun App() {
diagnosis = result.getDiagnosis(window.location.pathname),
onClickBack = {
quiz.reset()
window.location.pathname = "/"
window.location.href = "/torisetsu/"
}
)
}
Expand Down

0 comments on commit a77724a

Please sign in to comment.