From c9be052001294174cee5b027fd1afd328bbdc893 Mon Sep 17 00:00:00 2001 From: KT Park Date: Wed, 21 Sep 2022 16:02:13 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"(#84)=20payload.url=EC=9D=B4=20?= =?UTF-8?q?=EC=97=86=EB=8A=94=EA=B2=BD=EC=9A=B0=20new=20URL=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=95=88=ED=95=A8"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit afc9207ddbd26ecb3c6cdb646d97cee64338da14. --- assets/js/media_library.widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/media_library.widget.js b/assets/js/media_library.widget.js index 73b080a..a50d7ce 100644 --- a/assets/js/media_library.widget.js +++ b/assets/js/media_library.widget.js @@ -161,7 +161,7 @@ window.$(function ($) { _normalizeFileData: function (payload) { var data = { title: payload.title || payload.clientname, - imageUrl: payload.url ? new URL(XE._.get(payload, 'file.url', payload.url)).pathname : undefined, + imageUrl: new URL(XE._.get(payload, 'file.url', payload.url)).pathname, mediaId: (payload.file_id) ? XE._.get(payload, 'id', '') : '', fileId: XE._.get(payload, 'file_id', payload.id || ''), size: payload.size,