aboutsummaryrefslogtreecommitdiff
path: root/src/renderer.js
diff options
context:
space:
mode:
authorChristopher Gwynn <[email protected]>2021-05-17 10:24:29 -0400
committerChristopher Gwynn <[email protected]>2021-05-17 10:24:29 -0400
commit00018c4f8246f325f0fd4ede7a03783e87d8c4d8 (patch)
tree549e1934be20a0c6358932b78aa8c0b79a727536 /src/renderer.js
parentpurge for electron (diff)
downloadwizard101-rpc-00018c4f8246f325f0fd4ede7a03783e87d8c4d8.tar.xz
wizard101-rpc-00018c4f8246f325f0fd4ede7a03783e87d8c4d8.zip
init
Diffstat (limited to 'src/renderer.js')
-rw-r--r--src/renderer.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/renderer.js b/src/renderer.js
new file mode 100644
index 0000000..4a35347
--- /dev/null
+++ b/src/renderer.js
@@ -0,0 +1,31 @@
+/**
+ * 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 './index.css';
+
+console.log('👋 This message is being logged by "renderer.js", included via webpack');