Fixed key name to void conflict
parent
b9f3762302
commit
e2d74f04db
|
@ -78,7 +78,7 @@ export default {
|
||||||
if (queryString)
|
if (queryString)
|
||||||
appTheme = new URLSearchParams(queryString.substring(1)).get('theme');
|
appTheme = new URLSearchParams(queryString.substring(1)).get('theme');
|
||||||
else
|
else
|
||||||
appTheme = localStorage.getItem('theme');
|
appTheme = localStorage.getItem('primevue-theme');
|
||||||
|
|
||||||
if (appTheme) {
|
if (appTheme) {
|
||||||
let darkTheme = this.isDarkTheme(appTheme);
|
let darkTheme = this.isDarkTheme(appTheme);
|
||||||
|
@ -120,7 +120,7 @@ export default {
|
||||||
this.$primevue.config.ripple = true;
|
this.$primevue.config.ripple = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
localStorage.setItem('theme', this.theme);
|
localStorage.setItem('primevue-theme', this.theme);
|
||||||
},
|
},
|
||||||
addClass(element, className) {
|
addClass(element, className) {
|
||||||
if (!this.hasClass(element, className)) {
|
if (!this.hasClass(element, className)) {
|
||||||
|
|
Loading…
Reference in New Issue