mirror of https://github.com/Lissy93/dashy.git
🐛 Adds text/css type attr for custom stylesheets (#560)
This commit is contained in:
parent
0e101b6330
commit
f286487b75
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue