2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-09-24 16:40:55 -06:00

Merge 8ae735f1106ca3e7efbcec3d7bcf11cdd971ce39 into 113c5b45b19ecc01cc7f2e4bb06cf89e66d40bfa

This commit is contained in:
Qwerty 2021-03-29 03:47:48 -05:00 committed by GitHub
commit dfc7261aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2370,7 +2370,7 @@ EasyMDE.prototype.uploadImage = function (file, onSuccess, onError) {
return;
}
if (this.status === 200 && response && !response.error && response.data && response.data.filePath) {
onSuccess(window.location.origin + '/' + response.data.filePath);
onSuccess(response.data.filePath);
} else {
if (response.error && response.error in self.options.errorMessages) { // preformatted error message
onErrorSup(fillErrorMessage(self.options.errorMessages[response.error]));