Closes #386 - Disable phonebook on FFOS packaged
This commit is contained in:
parent
d8b8726fb1
commit
2776c73b47
@ -331,12 +331,15 @@ angular.module('myApp.services', [])
|
||||
}
|
||||
|
||||
function isAvailable () {
|
||||
try {
|
||||
return navigator.mozContacts && navigator.mozContacts.getAll;
|
||||
} catch (e) {
|
||||
console.error(dT(), 'phonebook n/a', e);
|
||||
return false;
|
||||
if (Config.Navigator.ffos && Config.Modes.packed) {
|
||||
try {
|
||||
return navigator.mozContacts && navigator.mozContacts.getAll;
|
||||
} catch (e) {
|
||||
console.error(dT(), 'phonebook n/a', e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function openPhonebookImport () {
|
||||
|
Loading…
Reference in New Issue
Block a user