1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Plugins: Force plugin devtool dialog to be detached

This commit is contained in:
Laurent Cozic 2020-11-07 15:50:22 +00:00
parent a0f21796c2
commit f950e9b03f
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ export default class PluginRunner extends BasePluginRunner {
})}?pluginId=${encodeURIComponent(plugin.id)}&pluginScript=${encodeURIComponent(`file://${scriptPath}`)}`);
pluginWindow.webContents.once('dom-ready', () => {
pluginWindow.webContents.openDevTools();
pluginWindow.webContents.openDevTools({ mode: 'detach' });
});
ipcRenderer.on('pluginMessage', async (_event:any, message:PluginMessage) => {

View File

@ -1,6 +1,6 @@
(function(globalObject) {
// TODO: Not sure if that will work once packaged in Electron
const sandboxProxy = require('../../lib/services/plugins/sandboxProxy.js').default;
const sandboxProxy = require('../../node_modules/@joplinapp/lib/services/plugins/sandboxProxy.js').default;
const ipcRenderer = require('electron').ipcRenderer;
const urlParams = new URLSearchParams(window.location.search);