Changeset View
Changeset View
Standalone View
Standalone View
desktop/src/preload.js
// @flow | // @flow | ||||
// eslint-disable-next-line import/extensions | |||||
ashoat: Here I added an `eslint-disable`. I could not find a JS file this corresponds to, and it is… | |||||
import { contextBridge, ipcRenderer } from 'electron/renderer'; | import { contextBridge, ipcRenderer } from 'electron/renderer'; | ||||
import type { ElectronBridge } from 'lib/types/electron-types.js'; | import type { ElectronBridge } from 'lib/types/electron-types.js'; | ||||
const bridge: ElectronBridge = { | const bridge: ElectronBridge = { | ||||
onNavigate: callback => { | onNavigate: callback => { | ||||
const withEvent = (event, ...args) => callback(...args); | const withEvent = (event, ...args) => callback(...args); | ||||
ipcRenderer.on('on-navigate', withEvent); | ipcRenderer.on('on-navigate', withEvent); | ||||
Show All 16 Lines |
Here I added an eslint-disable. I could not find a JS file this corresponds to, and it is probably some Electron magic that cannot be changed.
I opted to just ignore the ESLint rule, as desktop is not impacted by either the Node.js 19 or Webpack 5 migrations.