wave-ui 2.38.0 → 2.39.0
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/wave-ui.es.js
CHANGED
|
@@ -1059,7 +1059,11 @@ const _sfc_main$M = {
|
|
|
1059
1059
|
const css = document.createElement("style");
|
|
1060
1060
|
css.id = "wave-ui-styles";
|
|
1061
1061
|
css.innerHTML = this.dynamicStyles();
|
|
1062
|
-
document.head.
|
|
1062
|
+
const firstStyle = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
1063
|
+
if (firstStyle)
|
|
1064
|
+
firstStyle.before(css);
|
|
1065
|
+
else
|
|
1066
|
+
document.head.appendChild(css);
|
|
1063
1067
|
}
|
|
1064
1068
|
this.getBreakpoint(window.innerWidth);
|
|
1065
1069
|
window.addEventListener("resize", this.getBreakpoint);
|