Skip to content

Commit 036f285

Browse files
committed
Use default export
1 parent 921dcd9 commit 036f285

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/update.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import {autoUpdater} from 'electron-updater';
1+
import electronUpdater from 'electron-updater';
22

33
function init() {
4-
autoUpdater.on('error', error => {
4+
electronUpdater.autoUpdater.on('error', error => {
55
console.error('auto-updater error:', error.message);
66
});
77
}
88

99
async function checkUpdate() {
10-
await autoUpdater.checkForUpdatesAndNotify();
10+
await electronUpdater.autoUpdater.checkForUpdatesAndNotify();
1111
}
1212

13-
const defaultObject = {init, checkUpdate};
14-
export default defaultObject;
13+
export default {init, checkUpdate};

0 commit comments

Comments
 (0)