-
Hi, Then there is the file: Please can you explain a bit or add a link to the documentation of how to use this file? Thanks you very much in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No worries. My bad that is caused confusion in the first place! The import { ipcRenderer } from 'electron';
ipcRenderer.send(...); instead of window.electron.ipcRenderer.send(...); You can choose to not use the electron module at all as both snippets are completely valid, in that case you can remove the file completely as it becomes obsolete. Hopefully this clears up some of the confusion! Since I want this template to be as simple as possible, I'm considering to remove this |
Beta Was this translation helpful? Give feedback.
No worries. My bad that is caused confusion in the first place!
The
electron.ts
module was personal preference. I've addedelectron.ts
in therenderer
so I could import Electron modules directly instead of having to access theelectron
object on thewindow
object.instead of
You can choose to not use the electron module at all as both snippets are completely valid, in that case you can remove the file completely as it becomes obsolete.
Hopefully this clears up some of the confusion!
Since I want this template to be as simple as possible, I'm considering to remove this
electron.ts
module …