Skip to content

Commit aeebf6a

Browse files
author
HienTM
committed
fix: fix link rel
1 parent ba78225 commit aeebf6a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.es.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ const loadStyles = (manifest, host) => {
108108
const entryUrl = resolveUrl(host, entry);
109109
const link = document.createElement('link');
110110
link.href = entryUrl;
111-
link.rel = 'text/css';
111+
link.rel = 'stylesheet';
112+
link.type = 'text/css';
112113
document.head.appendChild(link);
113114
});
114115
};

src/lazyLoadMicroFrontend.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const loadStyles = (manifest: Manifest, host: string) => {
4444
const entryUrl = resolveUrl(host, entry);
4545
const link = document.createElement('link');
4646
link.href = entryUrl;
47-
link.rel = 'text/css';
47+
link.rel = 'stylesheet';
48+
link.type = 'text/css';
4849
document.head.appendChild(link);
4950
});
5051
};

0 commit comments

Comments
 (0)