mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 785147 - Contacts API: fix import contacts from SIM card. r=fabrice
This commit is contained in:
parent
c3b9f1b805
commit
0f68b8d609
@ -548,7 +548,7 @@ ContactManager.prototype = {
|
|||||||
if (DEBUG) debug("got SIM contacts: " + aType + " " + JSON.stringify(aContacts));
|
if (DEBUG) debug("got SIM contacts: " + aType + " " + JSON.stringify(aContacts));
|
||||||
let result = aContacts.map(function(c) {
|
let result = aContacts.map(function(c) {
|
||||||
var contact = new Contact();
|
var contact = new Contact();
|
||||||
contact.init( { name: [c.alphaId], tel: [ { number: c.number } ] } );
|
contact.init( { name: [c.alphaId], tel: [ { value: c.number } ] } );
|
||||||
return contact;
|
return contact;
|
||||||
});
|
});
|
||||||
if (DEBUG) debug("result: " + JSON.stringify(result));
|
if (DEBUG) debug("result: " + JSON.stringify(result));
|
||||||
|
Loading…
Reference in New Issue
Block a user