Commit 5131f348 authored by aniket-engg's avatar aniket-engg

remove localStorage

parent b109c284
...@@ -28,10 +28,7 @@ class AnalysisTab extends ViewPlugin { ...@@ -28,10 +28,7 @@ class AnalysisTab extends ViewPlugin {
} }
render () { render () {
const listOfPlugins = localStorage.getItem('workspace') this.staticanalysis = new StaticAnalysis(this.registry, this)
// 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.event.register('staticAnaysisWarning', (count) => { this.staticanalysis.event.register('staticAnaysisWarning', (count) => {
if (count > 0) { if (count > 0) {
this.emit('statusChanged', { key: count, title: `${count} warning${count === 1 ? '' : 's'}`, type: 'warning' }) this.emit('statusChanged', { key: count, title: `${count} warning${count === 1 ? '' : 's'}`, type: 'warning' })
......
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