07-21-2023, 06:26 AM
I am trying to understand the difference between the two 'require' statements below.
Specifically, what is the purpose of the `{ }`s wrapped around `ipcMain`?
const electron = require('electron')
const {ipcMain} = require('electron')
They both appear to assign the contents of the `electron` module, but they obviously function differently.
Can anyone shed some light?
Specifically, what is the purpose of the `{ }`s wrapped around `ipcMain`?
const electron = require('electron')
const {ipcMain} = require('electron')
They both appear to assign the contents of the `electron` module, but they obviously function differently.
Can anyone shed some light?