更新插件名称

This commit is contained in:
zher52 2021-09-29 09:28:06 +08:00
parent a0aab26bdc
commit 2ee0c1a205
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="capture-cordova-plugin" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>Capture Plugin</name>
<js-module name="capture-cordova-plugin" src="www/capture.js">
<name>CapturePlugin</name>
<js-module name="capture" src="www/capture.js">
<clobbers target="capture"/>
</js-module>
<platform name="android">

View File

@ -2,6 +2,6 @@ var exec = require('cordova/exec');
module.exports = {
capture(option, success, error) {
exec(success, error, 'capture-cordova-plugin', 'capture', [option]);
exec(success, error, 'CapturePlugin', 'capture', [option]);
}
};