From d3d62916a399ec62b91fced4f5840ac78837384d Mon Sep 17 00:00:00 2001 From: viglino Date: Mon, 6 Nov 2023 14:31:48 +0100 Subject: [PATCH] [UPD] data:image media url --- api/serviceURL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/serviceURL.js b/api/serviceURL.js index e9ea5a9..25c4ff7 100644 --- a/api/serviceURL.js +++ b/api/serviceURL.js @@ -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; }