Skip to content

Commit

Permalink
🐛 Adds text/css type attr for custom stylesheets (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Mar 14, 2022
1 parent 0e101b6 commit f286487
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/ThemeHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const LoadExternalTheme = function th() {
const preloadTheme = (href) => {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css'
link.href = href;
document.head.appendChild(link);
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit f286487

Please sign in to comment.