@kupola/kupola 1.7.2 → 1.7.3
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/dist/kupola.cjs.js +17 -17
- package/dist/kupola.cjs.js.map +1 -1
- package/dist/kupola.esm.js +782 -796
- package/dist/kupola.esm.js.map +1 -1
- package/dist/kupola.umd.js +17 -17
- package/dist/kupola.umd.js.map +1 -1
- package/js/theme.js +0 -20
- package/package.json +1 -1
package/js/theme.js
CHANGED
|
@@ -101,26 +101,6 @@ function initTheme() {
|
|
|
101
101
|
|
|
102
102
|
if (!_themeInitialized) {
|
|
103
103
|
_themeInitialized = true;
|
|
104
|
-
|
|
105
|
-
if (toggleBtn) {
|
|
106
|
-
const iconEl = toggleBtn.querySelector('.theme-icon');
|
|
107
|
-
if (iconEl && iconEl.src) {
|
|
108
|
-
const currentIconsPath = getIconsPath();
|
|
109
|
-
if (currentIconsPath === '/icons/') {
|
|
110
|
-
const iconPath = iconEl.src.substring(0, iconEl.src.lastIndexOf('/') + 1);
|
|
111
|
-
const basePath = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/') + 1);
|
|
112
|
-
const relativeIconsPath = iconPath.replace(window.location.origin + basePath, '');
|
|
113
|
-
if (relativeIconsPath !== iconPath) {
|
|
114
|
-
setConfig({
|
|
115
|
-
paths: {
|
|
116
|
-
icons: relativeIconsPath,
|
|
117
|
-
base: basePath
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
104
|
}
|
|
125
105
|
|
|
126
106
|
const savedTheme = getTheme();
|
package/package.json
CHANGED