Commit 110d8a6a by Sixong.Zhu

cs

parent 6476e76f
Showing with 2 additions and 0 deletions
...@@ -57,8 +57,10 @@ export function rebuildImage(url: string) { ...@@ -57,8 +57,10 @@ export function rebuildImage(url: string) {
const s = sdk.mediaController.buildThumbnail; const s = sdk.mediaController.buildThumbnail;
if (fsImg.test(url)) { if (fsImg.test(url)) {
const m = fsImg.exec(url); const m = fsImg.exec(url);
if (m && m.length) {
return sdk.global.baseUrl + s(m[0], 300); return sdk.global.baseUrl + s(m[0], 300);
} }
}
return url; return url;
} }
return ""; return "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment