mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
parent
86097b0ce6
commit
754c5ecbcb
@ -378,14 +378,6 @@ function overrideFunction(pluginObj: any, methodName: string, args: any[], opts:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let method = pluginInstance[methodName];
|
|
||||||
if (!method) {
|
|
||||||
observer.error({
|
|
||||||
error: 'no_such_method'
|
|
||||||
});
|
|
||||||
observer.complete();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
pluginInstance[methodName] = observer.next.bind(observer);
|
pluginInstance[methodName] = observer.next.bind(observer);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user