Skip to content

Commit

Permalink
Fix dark sq bug
Browse files Browse the repository at this point in the history
  • Loading branch information
karimi committed Sep 16, 2024
1 parent 412ea16 commit c479119
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions quasar_site/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ mounted() {
if (this.$route.query.plain) {
this.forScriptEditor = true;
}
let wasDark = localStorage.getItem('darkMode');
if (this.$route.query.dark == "true"){
let wasDark = localStorage.getItem('darkMode') || "false";
if (this.$route.query.dark == "true"){
wasDark = true;
}
console.log("wasDark", wasDark)
console.log("isActive", this.$q.dark.isActive.toString())
if (this.$q.dark.isActive.toString() != wasDark){
this.$q.dark.toggle()
}
Expand Down

0 comments on commit c479119

Please sign in to comment.