fake location permission api in fakemobileclient
This commit is contained in:
parent
4506c4956a
commit
36b3ee5596
1 changed files with 11 additions and 0 deletions
|
@ -19,6 +19,17 @@ mobileclient = {
|
||||||
mobileclient.wait = false;
|
mobileclient.wait = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
_locationPermission: false,
|
||||||
|
hasLocationPermission: function() {
|
||||||
|
console.log('mobileclient hasLocationPermission: ' + window.mobileclient._locationPermission);
|
||||||
|
return window.mobileclient._locationPermission;
|
||||||
|
},
|
||||||
|
checkLocationPermission: function(requestPermission) {
|
||||||
|
requestPermission = requestPermission ? true : false;
|
||||||
|
console.log('mobileclient checkLocationPermission(' + requestPermission + ')');
|
||||||
|
window.mobileclient._locationPermission = true;
|
||||||
|
return true
|
||||||
|
},
|
||||||
shareUrl: function(url) {
|
shareUrl: function(url) {
|
||||||
console.log('mobileclient: sharing url: '+url);
|
console.log('mobileclient: sharing url: '+url);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue