pull/5370/head
yann300 4 years ago
parent 6cd9a5ff3f
commit f0f8420368
  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 config: registry.get('config').api
} }
this.themes = themes.reduce((acc, theme) => { this.themes = themes.reduce((acc, theme) => {
theme.url = window.location.origin + '/' + theme.url theme.url = window.location.origin + '/' + theme.url
return { ...acc, [theme.name]: theme } return { ...acc, [theme.name]: theme }
}, {}) }, {})
let queryTheme = (new QueryParams()).get().theme let queryTheme = (new QueryParams()).get().theme
queryTheme = this.themes[queryTheme] ? queryTheme : null queryTheme = this.themes[queryTheme] ? queryTheme : null

@ -97,7 +97,7 @@ export class RemixAppManager extends PluginManager {
const savedPlugins = localStorage.getItem('plugins-directory') const savedPlugins = localStorage.getItem('plugins-directory')
if (savedPlugins) { if (savedPlugins) {
try { try {
plugin = JSON.parse(savedPlugins) plugins = JSON.parse(savedPlugins)
} catch (e) { } catch (e) {
console.error(e) console.error(e)
} }

Loading…
Cancel
Save