Skip to content

Commit

Permalink
Revert "(#84) payload.url이 없는경우 new URL 사용안함"
Browse files Browse the repository at this point in the history
This reverts commit afc9207.
  • Loading branch information
KT Park committed Sep 21, 2022
1 parent afc9207 commit c9be052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/media_library.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c9be052

Please sign in to comment.