diff --git a/lib/browser/api/auto-updater.js b/lib/browser/api/auto-updater.js index f99d3218e430..f838a26f2cea 100644 --- a/lib/browser/api/auto-updater.js +++ b/lib/browser/api/auto-updater.js @@ -1,2 +1,5 @@ -const autoUpdater = process.platform === 'win32' ? require('./auto-updater/auto-updater-win') : require('./auto-updater/auto-updater-native') -module.exports = autoUpdater +if (process.platform === 'win32') { + module.exports = require('./auto-updater/auto-updater-win') +} else { + module.exports = require('./auto-updater/auto-updater-native') +}