Devtools
This commit is contained in:
parent
5e0c5e39f6
commit
a4cbfd9235
|
@ -18,15 +18,16 @@ import { Toasts } from 'ui';
|
|||
|
||||
export default new class ReactDevtoolsModule extends BuiltinModule {
|
||||
|
||||
/* Getters */
|
||||
get moduleName() { return 'ReactDevTools' }
|
||||
|
||||
get settingPath() { return ['core', 'advanced', 'react-devtools'] }
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.devToolsOpened = this.devToolsOpened.bind(this);
|
||||
}
|
||||
|
||||
get settingPath() {
|
||||
return ['core', 'advanced', 'react-devtools'];
|
||||
}
|
||||
|
||||
enabled(e) {
|
||||
electron.remote.getCurrentWindow().webContents.on('devtools-opened', this.devToolsOpened);
|
||||
if (electron.remote.getCurrentWindow().isDevToolsOpened) this.devToolsOpened();
|
||||
|
|
|
@ -18,15 +18,16 @@ import { Toasts } from 'ui';
|
|||
|
||||
export default new class VueDevtoolsModule extends BuiltinModule {
|
||||
|
||||
/* Getters */
|
||||
get moduleName() { return 'VueDevTools' }
|
||||
|
||||
get settingPath() { return ['core', 'advanced', 'vue-devtools'] }
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.devToolsOpened = this.devToolsOpened.bind(this);
|
||||
}
|
||||
|
||||
get settingPath() {
|
||||
return ['core', 'advanced', 'vue-devtools'];
|
||||
}
|
||||
|
||||
enabled(e) {
|
||||
electron.remote.getCurrentWindow().webContents.on('devtools-opened', this.devToolsOpened);
|
||||
if (electron.remote.getCurrentWindow().isDevToolsOpened) this.devToolsOpened();
|
||||
|
|
Loading…
Reference in New Issue