1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Implement simpler solution for dynamic theme loading

This commit is contained in:
Harvey Kandola 2019-01-07 19:26:08 +00:00
parent a424bbfcae
commit 4ddbe59556
5 changed files with 913 additions and 813 deletions

View file

@ -127,7 +127,7 @@ export default Service.extend({
return;
}
let file = this.get('assetMap').resolve(`assets/theme-${theme}.css`);
let file = window.assetMapping[`theme${theme}`]
$('head').append(`<link id="theme-link" rel="stylesheet" href="${file}">`);
},