Commit 4532a3b8 authored by filip mertens's avatar filip mertens Committed by aniket-engg

fixes for deactivating hardhat

parent 3a96a09d
......@@ -53,7 +53,6 @@ export class RemixdHandle extends WebsocketPlugin {
async canceled () {
// await this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
await this.appManager.deactivatePlugin('remixd')
await this.appManager.deactivatePlugin('hardhat')
}
/**
......
......@@ -53,6 +53,8 @@ export class RemixAppManager extends PluginManager {
}
async deactivatePlugin (name) {
const isActive = await this.isActive(name)
if (!isActive) return
const [to, from] = [
await this.getProfile(name),
await this.getProfile(this.requestFrom)
......
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