Skip to content

Commit b071b0e

Browse files
artshevtsovlinkesch
authored andcommitted
Getting relative path for uploaded image, instead of absolute (linkesch#455)
* Getting relative path for uploaded image, instead of absolute * Getting relative path for uploaded image, instead of absolute. BUILD * build again, node updated * Revert "build again, node updated" This reverts commit b2b2404. * Revert "Getting relative path for uploaded image, instead of absolute. BUILD" This reverts commit fc088de.
1 parent d6ec905 commit b071b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
if (this.options.preview && data.context) {
387387
domImage = this.getDOMImage();
388388
domImage.onload = function () {
389-
data.context.find('img').attr('src', domImage.src);
389+
data.context.find('img').attr('src', domImage.getAttribute('src'));
390390

391391
if (this.options.uploadCompleted) {
392392
this.options.uploadCompleted(data.context, data);

0 commit comments

Comments
 (0)