Remove my leak tests

This commit is contained in:
Jiiks 2018-08-12 15:48:26 +03:00
parent 3614997fa9
commit 5f4a77f2d8
2 changed files with 6 additions and 6 deletions

View File

@ -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() {

View File

@ -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() {