diff --git a/src/app.js b/src/app.js index 3c4239b46b..be343c9de5 100644 --- a/src/app.js +++ b/src/app.js @@ -475,7 +475,12 @@ Please make a backup of your contracts and start using http://remix.ethereum.org swapPanelApi.event.on('toggle', () => { this._components.resizeFeature.panel1.clientWidth !== 0 ? this._components.resizeFeature.minimize() : this._components.resizeFeature.maximise() }) - swapPanelApi.event.on('showing', () => { this._components.resizeFeature.panel1.clientWidth === 0 ? this._components.resizeFeature.maximise() : '' }) + swapPanelApi.event.on('showing', (moduleName) => { + this._components.resizeFeature.panel1.clientWidth === 0 ? this._components.resizeFeature.maximise() : '' + var current = appStore.getOne(moduleName) + // warn the content that it is being displayed. TODO should probably be done in each view + if (current && current.api.__showing) current.api.__showing() + }) verticalIconComponent.select('file explorers') diff --git a/src/app/tabs/support-tab.js b/src/app/tabs/support-tab.js index 6844bfb94e..72ca284d56 100644 --- a/src/app/tabs/support-tab.js +++ b/src/app/tabs/support-tab.js @@ -9,7 +9,7 @@ class SupportTab { this.gitterIsLoaded = false } - loadContent () { + __showing () { if (this.gitterIsLoaded) return const iframe = yo`