We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 921dcd9 commit 036f285Copy full SHA for 036f285
1 file changed
src/update.ts
@@ -1,14 +1,13 @@
1
-import {autoUpdater} from 'electron-updater';
+import electronUpdater from 'electron-updater';
2
3
function init() {
4
- autoUpdater.on('error', error => {
+ electronUpdater.autoUpdater.on('error', error => {
5
console.error('auto-updater error:', error.message);
6
});
7
}
8
9
async function checkUpdate() {
10
- await autoUpdater.checkForUpdatesAndNotify();
+ await electronUpdater.autoUpdater.checkForUpdatesAndNotify();
11
12
13
-const defaultObject = {init, checkUpdate};
14
-export default defaultObject;
+export default {init, checkUpdate};
0 commit comments