mobile: fix hasSafeAreaInset as PWA is only for WebAppService (#314)

This commit is contained in:
Huang Xin
2025-02-07 22:35:24 +01:00
committed by GitHub
parent ce00c3e923
commit 7dfd7b9ca2
2 changed files with 3 additions and 3 deletions
@@ -22,7 +22,6 @@ import { isValidURL } from '@/utils/misc';
import { BaseAppService } from './appService';
import { LOCAL_BOOKS_SUBDIR } from './constants';
import { isPWA } from './environment';
const OS_TYPE = osType();
@@ -125,7 +124,7 @@ export class NativeAppService extends BaseAppService {
hasWindowBar = !(OS_TYPE === 'ios' || OS_TYPE === 'android');
hasContextMenu = !(OS_TYPE === 'ios' || OS_TYPE === 'android');
hasRoundedWindow = !(OS_TYPE === 'ios' || OS_TYPE === 'android');
hasSafeAreaInset = OS_TYPE === 'ios' || OS_TYPE === 'android' || isPWA();
hasSafeAreaInset = OS_TYPE === 'ios' || OS_TYPE === 'android';
override resolvePath(fp: string, base: BaseDir): { baseDir: number; base: BaseDir; fp: string } {
return resolvePath(fp, base);