@nubitio/ui 0.5.24 → 0.5.27
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/index.cjs +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -760,7 +760,13 @@ function setThemeToDOM(href) {
|
|
|
760
760
|
link.setAttribute("data-theme-href", href);
|
|
761
761
|
document.head.appendChild(link);
|
|
762
762
|
}
|
|
763
|
-
|
|
763
|
+
const timer = setTimeout(resolve, 5e3);
|
|
764
|
+
const settle = () => {
|
|
765
|
+
clearTimeout(timer);
|
|
766
|
+
resolve();
|
|
767
|
+
};
|
|
768
|
+
link.onload = settle;
|
|
769
|
+
link.onerror = settle;
|
|
764
770
|
});
|
|
765
771
|
}
|
|
766
772
|
function applyThemeAttributes(theme, themePrefix) {
|
package/dist/index.mjs
CHANGED
|
@@ -736,7 +736,13 @@ function setThemeToDOM(href) {
|
|
|
736
736
|
link.setAttribute("data-theme-href", href);
|
|
737
737
|
document.head.appendChild(link);
|
|
738
738
|
}
|
|
739
|
-
|
|
739
|
+
const timer = setTimeout(resolve, 5e3);
|
|
740
|
+
const settle = () => {
|
|
741
|
+
clearTimeout(timer);
|
|
742
|
+
resolve();
|
|
743
|
+
};
|
|
744
|
+
link.onload = settle;
|
|
745
|
+
link.onerror = settle;
|
|
740
746
|
});
|
|
741
747
|
}
|
|
742
748
|
function applyThemeAttributes(theme, themePrefix) {
|