diff --git a/src/preload.ts b/src/preload.ts index 6564f23c..8dee28dc 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -9,7 +9,7 @@ export function preLoadCheck(){ const isNodeServer = !!globalThis.__NODE__ const isCapacitor = Capacitor.isNativePlatform(); - const isWeb = !isTauri && !isNodeServer && location.hostname !== 'risuai.xyz' && !isCapacitor; + const isWeb = !isTauri && !isNodeServer && location.hostname === 'risuai.xyz' && !isCapacitor; // Check if the user has visited the main page