Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit d5ae76b

Browse files
up-87andi34
authored andcommitted
prevent caching of collage images with unique image name
1 parent 2bf0734 commit d5ae76b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,11 +523,11 @@ const photoBooth = (function () {
523523

524524
let imageUrl = config.foldersRoot.tmp + '/' + result.collage_file;
525525
const preloadImage = new Image();
526-
const picdate = Date.now;
526+
const picdate = Date.now().toString();
527527
loading.append($('<p>').text(photoboothTools.getTranslation('wait_message')));
528528
preloadImage.onload = () => {
529529
loaderImage.css({
530-
'background-image': `url(${imageUrl}?filter=${imgFilter})`
530+
'background-image': `url(${imageUrl}?filter=${imgFilter}&v=${picdate})`
531531
});
532532
loaderImage.attr('data-img', picdate);
533533
};

0 commit comments

Comments
 (0)