From 5f4a77f2d8a3d32020d250e7c7090e27224483ed Mon Sep 17 00:00:00 2001 From: Jiiks Date: Sun, 12 Aug 2018 15:48:26 +0300 Subject: [PATCH] Remove my leak tests --- client/src/builtin/ReactDevtoolsModule.js | 6 +++--- client/src/builtin/VueDevToolsModule.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/builtin/ReactDevtoolsModule.js b/client/src/builtin/ReactDevtoolsModule.js index cb0ac4a4..134e00c4 100644 --- a/client/src/builtin/ReactDevtoolsModule.js +++ b/client/src/builtin/ReactDevtoolsModule.js @@ -28,12 +28,12 @@ export default new class ReactDevtoolsModule extends BuiltinModule { } enabled(e) { - // electron.remote.BrowserWindow.getAllWindows()[0].webContents.on('devtools-opened', this.devToolsOpened); + electron.remote.BrowserWindow.getAllWindows()[0].webContents.on('devtools-opened', this.devToolsOpened); } disabled(e) { - // 7electron.remote.BrowserWindow.removeDevToolsExtension('React Developer Tools'); - // electron.remote.BrowserWindow.getAllWindows()[0].webContents.removeListener('devtools-opened', this.devToolsOpened); + electron.remote.BrowserWindow.removeDevToolsExtension('React Developer Tools'); + electron.remote.BrowserWindow.getAllWindows()[0].webContents.removeListener('devtools-opened', this.devToolsOpened); } devToolsOpened() { diff --git a/client/src/builtin/VueDevToolsModule.js b/client/src/builtin/VueDevToolsModule.js index c80e9b9d..794042b5 100644 --- a/client/src/builtin/VueDevToolsModule.js +++ b/client/src/builtin/VueDevToolsModule.js @@ -28,12 +28,12 @@ export default new class VueDevtoolsModule extends BuiltinModule { } enabled(e) { - // electron.remote.BrowserWindow.getAllWindows()[0].webContents.on('devtools-opened', this.devToolsOpened); + electron.remote.BrowserWindow.getAllWindows()[0].webContents.on('devtools-opened', this.devToolsOpened); } disabled(e) { - // electron.remote.BrowserWindow.removeDevToolsExtension('Vue.js devtools'); - // electron.remote.BrowserWindow.getAllWindows()[0].webContents.removeListener('devtools-opened', this.devToolsOpened); + electron.remote.BrowserWindow.removeDevToolsExtension('Vue.js devtools'); + electron.remote.BrowserWindow.getAllWindows()[0].webContents.removeListener('devtools-opened', this.devToolsOpened); } devToolsOpened() {