Files
Compass/web/lib/util/webview.ts
2025-10-30 21:40:36 +01:00

8 lines
196 B
TypeScript

export function isAndroidWebView() {
try {
// Detect if Android bridge exists
return typeof (window as any).AndroidBridge?.isNativeApp === 'function';
} catch {
return false;
}
}