File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1222,15 +1222,15 @@ export class Bluetooth extends BluetoothCommon {
12221222 // location permission not needed anymore
12231223 return true ;
12241224 }
1225- return check ( 'location' , { coarse : false , precise : true } ) . then ( ( r ) => r [ 1 ] ) ;
1225+ return check ( 'location' , { coarse : false , precise : true } ) . then ( ( r ) => r [ 0 ] === 'authorized' ) ;
12261226 }
12271227
12281228 async requestLocationPermission ( ) {
12291229 if ( sdkVersion >= 31 ) {
12301230 // location permission not needed anymore
12311231 return true ;
12321232 }
1233- return request ( 'location' , { coarse : false , precise : true } ) . then ( ( r ) => r [ 1 ] ) ;
1233+ return request ( 'location' , { coarse : false , precise : true } ) . then ( ( r ) => r [ 0 ] === 'authorized' ) ;
12341234 }
12351235 async isGPSEnabled ( ) {
12361236 if ( sdkVersion >= 31 ) {
You can’t perform that action at this time.
0 commit comments