|
|
@ -331,12 +331,15 @@ angular.module('myApp.services', []) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function isAvailable () { |
|
|
|
function isAvailable () { |
|
|
|
try { |
|
|
|
if (Config.Navigator.ffos && Config.Modes.packed) { |
|
|
|
return navigator.mozContacts && navigator.mozContacts.getAll; |
|
|
|
try { |
|
|
|
} catch (e) { |
|
|
|
return navigator.mozContacts && navigator.mozContacts.getAll; |
|
|
|
console.error(dT(), 'phonebook n/a', e); |
|
|
|
} catch (e) { |
|
|
|
return false; |
|
|
|
console.error(dT(), 'phonebook n/a', e); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function openPhonebookImport () { |
|
|
|
function openPhonebookImport () { |
|
|
|