Fix hostname condition in preload.ts

This commit is contained in:
kwaroran
2024-04-30 13:52:46 +09:00
parent 808112630d
commit 1bc7a38d65

View File

@@ -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