@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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kupola/kupola",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "A lightweight UI toolkit for any web project. No heavy frontend frameworks required.",
5
5
  "main": "dist/kupola.cjs.js",
6
6
  "module": "dist/kupola.esm.js",