added search, mentions, keep place , scroll dn

This commit is contained in:
2024-11-15 13:38:49 +02:00
parent 8562b0c5ce
commit 54bb22e24e
21 changed files with 1593 additions and 97 deletions

View File

@@ -37,6 +37,14 @@ if (electronIsDev) {
setupReloadWatcher(myCapacitorApp);
}
const checkForUpdates = async () => {
try {
await autoUpdater.checkForUpdatesAndNotify();
} catch (error) {
console.error("Error checking for updates:", error);
}
};
// Run Application
(async () => {
// Wait for electron app to be ready.
@@ -46,10 +54,13 @@ if (electronIsDev) {
// Initialize our app, build windows, and load content.
await myCapacitorApp.init();
// Check for updates if we are in a packaged app.
autoUpdater.checkForUpdatesAndNotify();
setInterval(() => {
autoUpdater.checkForUpdatesAndNotify();
}, 6 * 60 * 60 * 1000); // 24 hours in milliseconds
checkForUpdates();
// Set up periodic update checks
setInterval(checkForUpdates, 24 * 60 * 60 * 1000); // 24 hours
})();
// Handle when all of our windows are close (platforms have their own expectations).