You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We simply resolve with what the Electron API gives us BrowserWindow.addDevToolsExtension, if you want the version as well (I don't know why you would need this / care about this) raise a feature request on electron/electron with a solid use case 👍
Due to the auto updating problem it's nice to be able to log Added Extension: ${name} ${version}.
I ended up doing let version = require('electron').BrowserWindow.getDevToolsExtensions()[name].version. Taking a look at the code, it looks like you access getDevToolsExtensions() as well so it shouldn't be a problem, but I forgot you can't return multiple values with Promises. It would require returning an array.
It was just a minor suggestion though. Any news on #28?
It would be useful to have the promise return the version as well.
The text was updated successfully, but these errors were encountered: