diff --git a/src/lib/main.js b/src/lib/main.js index f2a6163c8..a7c724ce0 100644 --- a/src/lib/main.js +++ b/src/lib/main.js @@ -239,6 +239,23 @@ async function onDeviceReady() { applySettings.afterRender(); }, 500); } + setTimeout(() => { + checkPluginsUpdate() + .then((updates) => { + if (!updates.length) return; + acode.pushNotification( + "Plugin Updates", + `${updates.length} plugin${updates.length > 1 ? "s" : ""} ${updates.length > 1 ? "have" : "has"} new version${updates.length > 1 ? "s" : ""} available.`, + { + icon: "extension", + action: () => { + plugins(updates); + }, + }, + ); + }) + .catch(console.error); + }, 5000); } async function loadApp() { @@ -408,22 +425,6 @@ async function loadApp() { initFileList(); - checkPluginsUpdate() - .then((updates) => { - if (!updates.length) return; - acode.pushNotification( - "Plugin Updates", - `${updates.length} plugin${updates.length > 1 ? "s" : ""} ${updates.length > 1 ? "have" : "has"} new version${updates.length > 1 ? "s" : ""} available.`, - { - icon: "extension", - action: () => { - plugins(updates); - }, - }, - ); - }) - .catch(console.error); - // Check for app updates if (navigator.onLine) { fetch("https://api.github.com/repos/Acode-Foundation/Acode/releases/latest")