mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(dx/electron): web contents not working
This commit is contained in:
parent
886c694db7
commit
1b25275b2e
@ -122,7 +122,7 @@ export default async function buildApp() {
|
|||||||
startScheduledCleanup();
|
startScheduledCleanup();
|
||||||
|
|
||||||
if (utils.isElectron) {
|
if (utils.isElectron) {
|
||||||
(await import("@electron/remote/main/index.js")).initialize();
|
(await import("@electron/remote/main")).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/index.js")).default;
|
const remoteMain = (await import("@electron/remote/main"));
|
||||||
remoteMain.enable(webContents);
|
remoteMain.enable(webContents);
|
||||||
|
|
||||||
webContents.setWindowOpenHandler((details) => {
|
webContents.setWindowOpenHandler((details) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user