From eb87fa241a717a80db52e1184c01c35415617111 Mon Sep 17 00:00:00 2001 From: agoncalvesos <51172649+agoncalvesos@users.noreply.github.com> Date: Tue, 20 Aug 2019 10:34:58 +0100 Subject: [PATCH] Update ImageEditorPlugin.js --- www/ImageEditorPlugin.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {