From fd1fcbb1c00960453ba5ffcba4b6d0ca88396a02 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 6 Jun 2021 16:36:11 +0530 Subject: Extracted common string into constant. --- src/electron/ipc-api/autoUpdate.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/electron/ipc-api') diff --git a/src/electron/ipc-api/autoUpdate.js b/src/electron/ipc-api/autoUpdate.js index 58eda801c..603049c4e 100644 --- a/src/electron/ipc-api/autoUpdate.js +++ b/src/electron/ipc-api/autoUpdate.js @@ -1,5 +1,6 @@ import { app, ipcMain } from 'electron'; import { autoUpdater } from 'electron-updater'; +import { GITHUB_NIGHTLIES_REPO_NAME, GITHUB_ORG_NAME } from '../../config'; import { isMac, isWindows } from '../../environment'; const debug = require('debug')('Ferdi:ipcApi:autoUpdate'); @@ -21,8 +22,8 @@ export default (params) => { autoUpdater.allowPrerelease = Boolean(params.settings.app.get('nightly')); autoUpdater.setFeedURL({ provider: 'github', - repo: 'nightlies', - owner: 'getferdi', + owner: GITHUB_ORG_NAME, + repo: GITHUB_NIGHTLIES_REPO_NAME, }); } -- cgit v1.2.3-54-g00ecf