From 215895e215e814b9d6d0faf2fbc6c390d6430d01 Mon Sep 17 00:00:00 2001 From: nazmus-saqib008 Date: Fri, 12 Jan 2024 10:57:05 +0530 Subject: [PATCH] enabled remote electron modules in main.js --- imagelab_electron/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imagelab_electron/main.js b/imagelab_electron/main.js index 81e334b..7a7073c 100644 --- a/imagelab_electron/main.js +++ b/imagelab_electron/main.js @@ -5,6 +5,9 @@ console.log("main process working"); const electron = require("electron"); const path = require("path"); +const remoteMain= require('@electron/remote/main'); +remoteMain.initialize(); + const { app, BrowserWindow, Menu, shell } = electron; let splash;