mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 23:37:43 +03:00
Moved card-asset load to be last on activate
- I think this is the least important process, so it can go last
This commit is contained in:
parent
4c7330125f
commit
b98fd62a3d
@ -66,15 +66,14 @@ class Bridge {
|
||||
themeEngine.setActive(settings, loadedTheme, checkedTheme);
|
||||
const currentGhostAPI = this.getActiveTheme().engine('ghost-api');
|
||||
|
||||
const cardAssetConfig = this.getCardAssetConfig();
|
||||
|
||||
debug('reload card assets config', cardAssetConfig);
|
||||
cardAssetService.load(cardAssetConfig);
|
||||
|
||||
if (previousGhostAPI !== undefined && (previousGhostAPI !== currentGhostAPI)) {
|
||||
events.emit('services.themes.api.changed');
|
||||
this.reloadFrontend();
|
||||
}
|
||||
|
||||
const cardAssetConfig = this.getCardAssetConfig();
|
||||
debug('reload card assets config', cardAssetConfig);
|
||||
cardAssetService.load(cardAssetConfig);
|
||||
} catch (err) {
|
||||
logging.error(new errors.InternalServerError({
|
||||
message: tpl(messages.activateFailed, {theme: loadedTheme.name}),
|
||||
|
Loading…
Reference in New Issue
Block a user