From c9d26260db2b3b41cdad013e64b1afbec8f838d9 Mon Sep 17 00:00:00 2001 From: James Bithell Date: Fri, 7 Apr 2023 12:51:38 +0100 Subject: [PATCH] Remove renderer --- forge.config.ts | 2 +- src/electron/renderer.ts | 28 ---------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 src/electron/renderer.ts diff --git a/forge.config.ts b/forge.config.ts index f9051c72..dde98bb4 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -48,7 +48,7 @@ const config: ForgeConfig = { { nodeIntegration: false, html: './src/app/index.html', - js: './src/electron/renderer.ts', + js: './src/app/app.tsx', name: 'main_window', preload: { js: './src/electron/preload.ts', diff --git a/src/electron/renderer.ts b/src/electron/renderer.ts deleted file mode 100644 index 12064d85..00000000 --- a/src/electron/renderer.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file will automatically be loaded by webpack and run in the "renderer" context. - * To learn more about the differences between the "main" and the "renderer" context in - * Electron, visit: - * - * https://electronjs.org/docs/tutorial/application-architecture#main-and-renderer-processes - * - * By default, Node.js integration in this file is disabled. When enabling Node.js integration - * in a renderer process, please be aware of potential security implications. You can read - * more about security risks here: - * - * https://electronjs.org/docs/tutorial/security - * - * To enable Node.js integration in this file, open up `main.js` and enable the `nodeIntegration` - * flag: - * - * ``` - * // Create the browser window. - * mainWindow = new BrowserWindow({ - * width: 800, - * height: 600, - * webPreferences: { - * nodeIntegration: true - * } - * }); - * ``` - */ -import './../app/app.tsx'