🐛 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

View File

@ -32,6 +32,7 @@ export const LoadExternalTheme = function th() {
const preloadTheme = (href) => { const preloadTheme = (href) => {
const link = document.createElement('link'); const link = document.createElement('link');
link.rel = 'stylesheet'; link.rel = 'stylesheet';
link.type = 'text/css'
link.href = href; link.href = href;
document.head.appendChild(link); document.head.appendChild(link);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {