mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
commit
5076001e41
@ -87,7 +87,7 @@ export class MediaPlugin {
|
||||
*/
|
||||
constructor (src: string) {
|
||||
let res, rej, next;
|
||||
this.init = new Promise<any>((resolve, reject) => {res = resolve; rej = reject;});
|
||||
this.init = new Promise<any>((resolve, reject) => {res = resolve; rej = reject; });
|
||||
this.status = new Observable((observer) => {
|
||||
next = data => observer.next(data);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user