@volo/ngx-lepton-x.core 4.3.2 → 4.3.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.
|
@@ -223,10 +223,10 @@ class StyleService {
|
|
|
223
223
|
async loadStyle(style, direction) {
|
|
224
224
|
return new Promise((resolve) => {
|
|
225
225
|
const linkElement = this.createLinkElem(style, direction, resolve);
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
-
if (
|
|
229
|
-
|
|
226
|
+
// Find styles.css to insert before it
|
|
227
|
+
const stylesCss = this.document.querySelector('link[rel="stylesheet"][href*="styles"]');
|
|
228
|
+
if (stylesCss) {
|
|
229
|
+
stylesCss.insertAdjacentElement('beforebegin', linkElement);
|
|
230
230
|
}
|
|
231
231
|
else {
|
|
232
232
|
this.document.head.appendChild(linkElement);
|