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

Commit

Permalink
prevent caching of collage images with unique image name
Browse files Browse the repository at this point in the history
  • Loading branch information
up-87 authored and andi34 committed May 6, 2022
1 parent 2bf0734 commit d5ae76b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,11 +523,11 @@ const photoBooth = (function () {

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

0 comments on commit d5ae76b

Please sign in to comment.