Skip to content

Commit

Permalink
fix(media): create should return null if plugin is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed May 17, 2017
1 parent e5aff0f commit d68618f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/@ionic-native/plugins/media/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d68618f

Please sign in to comment.