Changeset View
Changeset View
Standalone View
Standalone View
desktop/src/auto-update.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 { app, ipcMain, autoUpdater } from 'electron/main'; | import { app, ipcMain, autoUpdater } from 'electron/main'; | ||||
const getUpdateUrl = version => | const getUpdateUrl = version => | ||||
`https://electron-update.commtechnologies.org/update/${process.platform}/${version}`; | `https://electron-update.commtechnologies.org/update/${process.platform}/${version}`; | ||||
export function initAutoUpdate(): void { | export function initAutoUpdate(): void { | ||||
autoUpdater.setFeedURL({ url: getUpdateUrl(app.getVersion()) }); | autoUpdater.setFeedURL({ url: getUpdateUrl(app.getVersion()) }); | ||||
Show All 17 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.
cc @michal