From 5131f348ec7262aa585e6aa1ea434da622c15b13 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Wed, 10 Feb 2021 15:58:22 +0530 Subject: [PATCH] remove localStorage --- apps/remix-ide/src/app/tabs/analysis-tab.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/analysis-tab.js b/apps/remix-ide/src/app/tabs/analysis-tab.js index bfefc6d758..4406ba875e 100644 --- a/apps/remix-ide/src/app/tabs/analysis-tab.js +++ b/apps/remix-ide/src/app/tabs/analysis-tab.js @@ -28,10 +28,7 @@ class AnalysisTab extends ViewPlugin { } render () { - const listOfPlugins = localStorage.getItem('workspace') - // Reset state if plugin is deactivated - if (!listOfPlugins.includes('solidityStaticAnalysis')) this.staticanalysis = null - if (!this.staticanalysis) this.staticanalysis = new StaticAnalysis(this.registry, this) + this.staticanalysis = new StaticAnalysis(this.registry, this) this.staticanalysis.event.register('staticAnaysisWarning', (count) => { if (count > 0) { this.emit('statusChanged', { key: count, title: `${count} warning${count === 1 ? '' : 's'}`, type: 'warning' })