Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ› Adds text/css type attr for custom stylesheets (#560)

Alicia Sykesf286487b75fb
diff --git a/src/utils/ThemeHelper.js b/src/utils/ThemeHelper.js
index b16b27e3..79def8ad 100644
--- a/src/utils/ThemeHelper.js
+++ b/src/utils/ThemeHelper.js
@@ -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) => {