mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
fix(media): create should return null if plugin is not available
This commit is contained in:
parent
e5aff0f5f0
commit
d68618f878
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user