devtron
devtron copied to clipboard
When I execute require("devtron").install(), I get an error /Users/fengshuan/Desktop/workspace/mdnice-desktop/node_modules/devtron/api.js:6 Uncaught TypeError: Cannot read property 'BrowserWindow' of undefined at Object.exports.install

Same issue 😞
wrapper the install function with setImmediate
setImmediate(() => { require('devtron').install() })
but it still have other problem. the project is too old to satify the chrome extention rules. you need to edit source code to solve it
wrapper the install function with setImmediate
setImmediate(() => { require('devtron').install() })
but it still have other problem. the project is too old to satify the chrome extention rules. you need to edit source code to solve it
That caused by the electron.remote.BrowserWindow.getDevToolsExtensions was obsolete, I'm trying to post pull request[226] to fix this by trying to locate get/add/remove extension methods in [session] instead of BrowserWindow. https://github.com/electron-userland/devtron/pull/226
Also, to make sure it's working properly, you may also including the previous pull request from [fearlessfe] as below: https://github.com/electron-userland/devtron/pull/217