listeningdaemon/web/refreshImage.js
2024-10-31 16:04:08 +00:00

11 lines
263 B
JavaScript

var newImage = new Image();
newImage.src = "img/main.svg";
function updateImage() {
if(newImage.complete) {
document.getElementById("dynamicImage").src = newImage.src;
newImage = new Image();
newImage.src = "img/main.svg#" + new Date().getTime();
}
}