Commit 45074c9e authored by yann300's avatar yann300

standard

parent 98abe690
......@@ -33,8 +33,8 @@ export class ThemeModule extends Plugin {
config: registry.get('config').api
}
this.themes = themes.reduce((acc, theme) => {
theme.url = window.location.origin + '/' + theme.url
return { ...acc, [theme.name]: theme }
theme.url = window.location.origin + '/' + theme.url
return { ...acc, [theme.name]: theme }
}, {})
let queryTheme = (new QueryParams()).get().theme
queryTheme = this.themes[queryTheme] ? queryTheme : null
......
......@@ -97,7 +97,7 @@ export class RemixAppManager extends PluginManager {
const savedPlugins = localStorage.getItem('plugins-directory')
if (savedPlugins) {
try {
plugin = JSON.parse(savedPlugins)
plugins = JSON.parse(savedPlugins)
} catch (e) {
console.error(e)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment