Skip to content

Commit

Permalink
Update ImageEditorPlugin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
agoncalvesos authored Aug 20, 2019
1 parent 86093f6 commit eb87fa2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions www/ImageEditorPlugin.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit eb87fa2

Please sign in to comment.