From 80563a53a88d2aa27e8f8c352d0c5564c0deb130 Mon Sep 17 00:00:00 2001 From: superfast Date: Mon, 6 Feb 2023 16:39:16 +0900 Subject: [PATCH] =?UTF-8?q?(#84)=20new=20URL=EC=97=90=20=EB=B9=88=20?= =?UTF-8?q?=EA=B0=92=EC=9D=B4=20=EB=93=A4=EC=96=B4=EA=B0=80=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 a50d7ce..6d807c0 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: new URL(XE._.get(payload, 'file.url', payload.url)).pathname, + imageUrl: XE._.get(payload, 'file.url', payload.url) ? new URL(XE._.get(payload, 'file.url', payload.url)).pathname : undefined, mediaId: (payload.file_id) ? XE._.get(payload, 'id', '') : '', fileId: XE._.get(payload, 'file_id', payload.id || ''), size: payload.size,