diff --git a/www/ImageEditorPlugin.js b/www/ImageEditorPlugin.js index 2bed440..c86ce0f 100644 --- a/www/ImageEditorPlugin.js +++ b/www/ImageEditorPlugin.js @@ -1,9 +1,7 @@ var exec = require('cordova/exec'); exports.editImageFromBase64 = function (base64, success, error) { - let reg = /base64,(.*)$/ - let result = reg.exec(base64); - exec(success, error, 'ImageEditorPlugin', 'editImage', ["base64", result[1]]); + exec(success, error, 'ImageEditorPlugin', 'editImage', ["base64", base64]); }; exports.editImageFromGallery = function (success, error) {