🐛 Adds text/css type attr for custom stylesheets (#560)

This commit is contained in:
Alicia Sykes 2022-03-14 22:16:33 +00:00
parent 0e101b6330
commit f286487b75
1 changed files with 1 additions and 0 deletions

View File

@ -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) => {