deactivatePluginsFromUrl

deactivatePlugin
yann300 4 years ago
parent 2d846f6027
commit e0d932d8b0
  1. 8
      apps/remix-ide/src/app.js

@ -405,6 +405,14 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// Set workspace after initial activation
if (Array.isArray(workspace)) {
appManager.activatePlugin(workspace).then(() => {
try {
if (params.deactivateplugins) {
appManager.deactivatePlugin(params.deactivateplugins.split(','))
}
} catch (e) {
console.log(e)
}
// If plugins are loaded from the URL params, we focus on the last one.
if (pluginLoader.current === 'queryParams' && workspace.length > 0) menuicons.select(workspace[workspace.length - 1])

Loading…
Cancel
Save