Skip to content

Commit

Permalink
Fix dark mode flashing again
Browse files Browse the repository at this point in the history
  • Loading branch information
karimi committed Sep 24, 2024
1 parent 03c4563 commit e36f5f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions quasar_site/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ mounted() {
wasDark = "false";
}
}
if (this.$q.dark.isActive.toString() != wasDark){
if (wasDark!= null && this.$q.dark.isActive.toString() != wasDark){
this.$q.dark.toggle()
}
},
Expand Down Expand Up @@ -264,8 +264,7 @@ watch: {
wasDark = "false";
}
}
if (this.$q.dark.isActive.toString() != wasDark){
console.log("toggling dark mode",wasDark,this.$q.dark.isActive.toString() )
if (wasDark!= null && this.$q.dark.isActive.toString() != wasDark){
this.$q.dark.toggle()
}
}
Expand Down

0 comments on commit e36f5f6

Please sign in to comment.