Skip to content

Commit

Permalink
Update Themes.js
Browse files Browse the repository at this point in the history
double-quote format
  • Loading branch information
guimillet authored Aug 5, 2023
1 parent 3a0f7c8 commit c5ca5fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/src/Themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ThemeModel extends WidgetModel {
if (this.get("dark") === null) {
vuetify.framework.theme.dark =
document.body.dataset.jpThemeLight === "false";
this.set('dark_jlab', vuetify.framework.theme.dark);
this.set("dark_jlab", vuetify.framework.theme.dark);
this.save_changes();
}
}, this);
Expand All @@ -41,14 +41,14 @@ export class ThemeModel extends WidgetModel {
} else if (document.body.dataset.jpThemeLight) {
vuetify.framework.theme.dark =
document.body.dataset.jpThemeLight === "false";
this.set('dark_jlab', vuetify.framework.theme.dark);
this.set("dark_jlab", vuetify.framework.theme.dark);
this.save_changes();
} else if (document.body.classList.contains('theme-dark')) {
} else if (document.body.classList.contains("theme-dark")) {
vuetify.framework.theme.dark = true;
this.set('dark', true);
this.set("dark", true);
this.save_changes();
} else if (document.body.classList.contains('theme-light')) {
this.set('dark', false);
} else if (document.body.classList.contains("theme-light")) {
this.set("dark", false);
this.save_changes();
}
this.on("change:dark", () => {
Expand Down

0 comments on commit c5ca5fa

Please sign in to comment.