fix(contacts): fix few bugs in Contacts (#846)

This commit is contained in:
Ibrahim Hadeed
2016-12-04 11:47:28 -05:00
committed by GitHub
parent abc90f2e6a
commit b19f6d1ccd
2 changed files with 80 additions and 110 deletions
+4 -1
View File
@@ -127,7 +127,10 @@ function callCordovaPlugin(pluginObj: any, methodName: string, args: any[], opts
return get(window, pluginObj.pluginRef)[methodName].apply(pluginInstance, args);
}
function getPromise(cb) {
/**
* @private
*/
export function getPromise(cb) {
const tryNativePromise = () => {
if (window.Promise) {