mirror of https://github.com/laurent22/joplin.git
Desktop: Fixes #8210: Display plugin console in dev mode
parent
1eeb5ab471
commit
3c0331eb6e
|
@ -129,7 +129,10 @@ export default class PluginRunner extends BasePluginRunner {
|
|||
|
||||
if (plugin.devMode) {
|
||||
pluginWindow.webContents.once('dom-ready', () => {
|
||||
pluginWindow.webContents.openDevTools({ mode: 'detach' });
|
||||
// Need to open with a delay, otherwise it doesn't show up
|
||||
setTimeout(() => {
|
||||
pluginWindow.webContents.openDevTools({ mode: 'detach' });
|
||||
}, 3000);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue