mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
fix(contacts): fix major bug
This commit is contained in:
parent
961727ee61
commit
6e20137340
@ -72,7 +72,7 @@ export class Contact implements IContactProperties {
|
||||
@InstanceProperty urls: IContactField[];
|
||||
|
||||
constructor() {
|
||||
if (checkAvailability(navigator.contacts, 'create', 'Contacts') === true) {
|
||||
if (checkAvailability('navigator.contacts', 'create', 'Contacts') === true) {
|
||||
this._objectInstance = navigator.contacts.create();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user