Skip to content

Commit

Permalink
Fixed key name to void conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Sep 15, 2021
1 parent b9f3762 commit e2d74f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {
if (queryString)
appTheme = new URLSearchParams(queryString.substring(1)).get('theme');
else
appTheme = localStorage.getItem('theme');
appTheme = localStorage.getItem('primevue-theme');
if (appTheme) {
let darkTheme = this.isDarkTheme(appTheme);
Expand Down Expand Up @@ -120,7 +120,7 @@ export default {
this.$primevue.config.ripple = true;
}
localStorage.setItem('theme', this.theme);
localStorage.setItem('primevue-theme', this.theme);
},
addClass(element, className) {
if (!this.hasClass(element, className)) {
Expand Down

0 comments on commit e2d74f0

Please sign in to comment.