fix: skip Tauri updater in Electron, add debug logging for routing
This commit is contained in:
@@ -42,11 +42,24 @@ if ('serviceWorker' in navigator) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if we're running in Electron (not Tauri)
|
||||
* Electron exposes window.electron in preload.js
|
||||
*/
|
||||
const isElectron = (): boolean => 'electron' in window;
|
||||
|
||||
/**
|
||||
* Check for app updates using Tauri updater
|
||||
* Prompts user if update is available and handles download/install
|
||||
* Note: Electron has its own auto-updater in main.js, so skip for Electron
|
||||
*/
|
||||
async function checkForUpdates() {
|
||||
// Skip if in Electron - Electron has its own auto-updater
|
||||
if (isElectron()) {
|
||||
console.log('Update check skipped - Electron handles updates natively');
|
||||
return;
|
||||
}
|
||||
|
||||
// Only run in Tauri context
|
||||
if (!isTauri()) {
|
||||
console.log('Update check skipped - not running in Tauri');
|
||||
|
||||
Reference in New Issue
Block a user