We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1052d09 commit 4f26a37Copy full SHA for 4f26a37
index.js
@@ -28,7 +28,8 @@ async function runUpdater() {
28
}
29
30
try {
31
- const checkUpdate = require('./lib/checkupdate')
+ const updaterPath = new URL('./lib/checkupdate.js', import.meta.url)
32
+ const { default: checkUpdate } = await import(updaterPath)
33
await checkUpdate()
34
} catch (e) {
35
originalLog('[SYSTEM] Gagal menjalankan updater:', e.message)
@@ -130,4 +131,5 @@ function start(file) {
130
131
132
133
await runUpdater()
134
+await new Promise(resolve => setTimeout(resolve, 7000))
135
start('main.js')
0 commit comments