mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 07:38:53 +02:00
chore(dx/desktop): remote main not working in dist build
This commit is contained in:
parent
135e2bb10e
commit
ebcf4315f7
@ -122,7 +122,7 @@ export default async function buildApp() {
|
|||||||
startScheduledCleanup();
|
startScheduledCleanup();
|
||||||
|
|
||||||
if (utils.isElectron) {
|
if (utils.isElectron) {
|
||||||
(await import("@electron/remote/main")).initialize();
|
(await import("@electron/remote/main/index.js")).initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
return app;
|
return app;
|
||||||
|
@ -224,7 +224,7 @@ function getWindowExtraOpts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function configureWebContents(webContents: WebContents, spellcheckEnabled: boolean) {
|
async function configureWebContents(webContents: WebContents, spellcheckEnabled: boolean) {
|
||||||
const remoteMain = (await import("@electron/remote/main"));
|
const remoteMain = (await import("@electron/remote/main/index.js"));
|
||||||
remoteMain.enable(webContents);
|
remoteMain.enable(webContents);
|
||||||
|
|
||||||
webContents.setWindowOpenHandler((details) => {
|
webContents.setWindowOpenHandler((details) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user