Skip to content

Commit

Permalink
Merge pull request sfeakes#131 from vziukas/master
Browse files Browse the repository at this point in the history
Background image url can have query params
  • Loading branch information
sfeakes authored Oct 2, 2020
2 parents 7282370 + 644cad9 commit e360cba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@
image.src = "hk/background.jpg"; // Use default if image fails.
};
if (typeof background_reload !== 'undefined' && background_reload > 0) {
image.src = background_url + '?' + new Date().getTime();
var op = background_url.indexOf('?') > 0 ? '&' : '?';
image.src = background_url + op + new Date().getTime();
setTimeout(load_background, (background_reload * 1000));
} else {
image.src = background_url;
Expand Down

0 comments on commit e360cba

Please sign in to comment.