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:
parent
a0f21796c2
commit
f950e9b03f
@ -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) => {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user