Skip to content

Commit

Permalink
[UPD] data:image media url
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Nov 6, 2023
1 parent 30d9629 commit d3d6291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/serviceURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function getMediaURL(id) {
// No media
if (!id) return '';
// Url is media
if (/^https?:\/\//.test(id)) return id;
if (/^https?:\/\//.test(id) || /^data:image\//.test(id)) return id;
// API media url
return serviceURL.media + '/' +id;
}
Expand Down

0 comments on commit d3d6291

Please sign in to comment.