We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 310271c commit bce861bCopy full SHA for bce861b
1 file changed
server/layout.js
@@ -40,11 +40,16 @@ module.exports = function(state, body = '') {
40
type="text/css"
41
href="${assets.get('app.css')}"
42
/>
43
- <link
44
- rel="stylesheet"
45
- type="text/css"
46
- href="${state.ui.assets.custom_css}"
47
- />
+ <script>
+ var custom_css_file = '${state.ui.assets.custom_css}';
+ if (custom_css_file!="undefined") {
+ var custom_css_enabled = document.createElement('link');
+ custom_css_enabled.rel = 'stylesheet';
48
+ custom_css_enabled.type = 'text/css';
49
+ custom_css_enabled.href = '${state.ui.assets.custom_css}';
50
+ document.head.appendChild(custom_css_enabled);
51
+ }
52
+ </script>
53
<link
54
rel="apple-touch-icon"
55
sizes="180x180"
0 commit comments