Fixed key name to void conflict

pull/1544/head
Cagatay Civici 2021-09-15 10:39:42 +03:00
parent b9f3762302
commit e2d74f04db
1 changed files with 2 additions and 2 deletions

View File

@ -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);
@ -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)) {