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:
parent
a424bbfcae
commit
4ddbe59556
5 changed files with 913 additions and 813 deletions
|
@ -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}">`);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue