File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
packages/rtn-web-browser/src/apis Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,6 @@ let appStateListener: NativeEventSubscription | undefined;
1515let redirectListener : NativeEventSubscription | undefined ;
1616
1717export async function isChromebook ( ) : Promise < boolean > {
18- // expo go
19- try {
20- const Device = require ( 'expo-device' ) ;
21- if ( Device ?. hasPlatformFeatureAsync ) {
22- if ( await Device . hasPlatformFeatureAsync ( 'org.chromium.arc' ) ) return true ;
23- if (
24- await Device . hasPlatformFeatureAsync (
25- 'org.chromium.arc.device_management' ,
26- )
27- )
28- return true ;
29- }
30- } catch {
31- // not using Expo
32- }
33-
34- // fallback to native module
3518 try {
3619 const nm = ( NativeModules as any ) ?. ChromeOS ;
3720 if ( nm ?. isChromeOS ) return ! ! ( await nm . isChromeOS ( ) ) ;
You can’t perform that action at this time.
0 commit comments