datasync-blob 1.1.36 → 1.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -418,15 +418,21 @@ function DsBlob(props) {
|
|
|
418
418
|
};
|
|
419
419
|
//-----------------------------------------------------------------------------------------------------------------------------------------
|
|
420
420
|
const getImageSrc = () => {
|
|
421
|
+
if (debugging)
|
|
422
|
+
console.log(`getImageSrc:::data->${data}`);
|
|
421
423
|
if (!data)
|
|
422
424
|
return "";
|
|
423
425
|
if (data.startsWith('http://') || data.startsWith('https://') || data.startsWith('blob:')) {
|
|
424
|
-
|
|
426
|
+
if (debugging)
|
|
427
|
+
console.log(`getImageSrc:::data starts with httpx://`);
|
|
428
|
+
return `${data}?${(0, datasync_core_1.CGUID)()}`; //CacheBreaker trial;
|
|
425
429
|
}
|
|
426
430
|
if (data.startsWith('data:')) {
|
|
431
|
+
if (debugging)
|
|
432
|
+
console.log(`getImageSrc:::data starts with data:`);
|
|
427
433
|
return data;
|
|
428
434
|
}
|
|
429
|
-
return data
|
|
435
|
+
return `${data}?${(0, datasync_core_1.CGUID)()}`; //CacheBreaker trial
|
|
430
436
|
};
|
|
431
437
|
//-----------------------------------------------------------------------------------------------------------------------------------------
|
|
432
438
|
const upload_picture_label = { cursor: "pointer" };
|