diff --git a/apps/remix-ide/src/app/tabs/theme-module.js b/apps/remix-ide/src/app/tabs/theme-module.js index d84f28d34a..ac67281241 100644 --- a/apps/remix-ide/src/app/tabs/theme-module.js +++ b/apps/remix-ide/src/app/tabs/theme-module.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 diff --git a/apps/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index 7e5cff90b8..57adb0dc8d 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -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) }