pull/653/head
yann300 4 years ago
parent 98abe690d3
commit 45074c9edc
  1. 4
      apps/remix-ide/src/app/tabs/theme-module.js
  2. 2
      apps/remix-ide/src/remixAppManager.js

@ -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)
}

Loading…
Cancel
Save