mirror of https://github.com/keeweb/keeweb.git
fix #1042: applying themes from config
This commit is contained in:
parent
9b9cda384a
commit
1dfc91aa66
|
@ -125,7 +125,11 @@ const AppModel = Backbone.Model.extend({
|
|||
.forEach(fi => this.fileInfos.unshift(fi));
|
||||
}
|
||||
if (config.plugins) {
|
||||
return Promise.all(config.plugins.map(plugin => PluginManager.installIfNew(plugin.url, plugin.manifest, true)));
|
||||
const pluginsPromises = config.plugins
|
||||
.map(plugin => PluginManager.installIfNew(plugin.url, plugin.manifest, true));
|
||||
return Promise.all(pluginsPromises).then(() => {
|
||||
this.settings.set(config.settings);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue