From d68618f878494110ede46f94128b4986193823f9 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Wed, 17 May 2017 07:21:42 -0400 Subject: [PATCH] fix(media): create should return null if plugin is not available --- src/@ionic-native/plugins/media/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/media/index.ts b/src/@ionic-native/plugins/media/index.ts index 690ff5e91..5396824b2 100644 --- a/src/@ionic-native/plugins/media/index.ts +++ b/src/@ionic-native/plugins/media/index.ts @@ -287,7 +287,7 @@ export class MediaPlugin extends IonicNativePlugin { * @param [onError] {MediaErrorCallback} A callback function is be invoked if an error occurs. * @return {MediaObject} */ - @CordovaCheck() + @CordovaCheck({ sync: true }) create(src: string, onStatusUpdate?: MediaStatusUpdateCallback, onSuccess?: Function,