Added if check to see if user is using custom CSS
This commit is contained in:
parent
310271c10f
commit
bce861bcaf
|
@ -40,11 +40,16 @@ module.exports = function(state, body = '') {
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="${assets.get('app.css')}"
|
href="${assets.get('app.css')}"
|
||||||
/>
|
/>
|
||||||
<link
|
<script>
|
||||||
rel="stylesheet"
|
var custom_css_file = '${state.ui.assets.custom_css}';
|
||||||
type="text/css"
|
if (custom_css_file!="undefined") {
|
||||||
href="${state.ui.assets.custom_css}"
|
var custom_css_enabled = document.createElement('link');
|
||||||
/>
|
custom_css_enabled.rel = 'stylesheet';
|
||||||
|
custom_css_enabled.type = 'text/css';
|
||||||
|
custom_css_enabled.href = '${state.ui.assets.custom_css}';
|
||||||
|
document.head.appendChild(custom_css_enabled);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<link
|
<link
|
||||||
rel="apple-touch-icon"
|
rel="apple-touch-icon"
|
||||||
sizes="180x180"
|
sizes="180x180"
|
||||||
|
|
Loading…
Reference in New Issue