@vanduo-oss/framework 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/build-info.json +3 -3
- package/dist/vanduo.cjs.js +8 -3
- package/dist/vanduo.cjs.js.map +2 -2
- package/dist/vanduo.cjs.min.js +4 -4
- package/dist/vanduo.cjs.min.js.map +2 -2
- package/dist/vanduo.css +1 -1
- package/dist/vanduo.esm.js +8 -3
- package/dist/vanduo.esm.js.map +2 -2
- package/dist/vanduo.esm.min.js +4 -4
- package/dist/vanduo.esm.min.js.map +2 -2
- package/dist/vanduo.js +8 -3
- package/dist/vanduo.js.map +2 -2
- package/dist/vanduo.min.css +1 -1
- package/dist/vanduo.min.js +4 -4
- package/dist/vanduo.min.js.map +2 -2
- package/js/components/theme-customizer.js +6 -1
- package/package.json +1 -1
|
@@ -282,7 +282,12 @@
|
|
|
282
282
|
const themeSwitcher = window.Vanduo.components.themeSwitcher;
|
|
283
283
|
if (themeSwitcher.state && themeSwitcher.state.preference !== mode) {
|
|
284
284
|
themeSwitcher.state.preference = mode;
|
|
285
|
-
|
|
285
|
+
if (typeof themeSwitcher.setStorageValue === 'function') {
|
|
286
|
+
themeSwitcher.setStorageValue(themeSwitcher.STORAGE_KEY, mode);
|
|
287
|
+
}
|
|
288
|
+
if (typeof themeSwitcher.updateUI === 'function') {
|
|
289
|
+
themeSwitcher.updateUI();
|
|
290
|
+
}
|
|
286
291
|
}
|
|
287
292
|
}
|
|
288
293
|
|