This commit is contained in:
Felix Roos 2022-03-16 23:13:33 +01:00
parent 305b4e1258
commit fe604ca2b1
4 changed files with 6 additions and 5 deletions

2
docs/dist/ui.js vendored
View file

@ -13,7 +13,7 @@ function frame(callback) {
};
requestAnimationFrame(animate);
}
export const backgroundImage = function(src, animateOptions) {
export const backgroundImage = function(src, animateOptions = {}) {
const container = document.getElementById("code");
const bg = "background-image:url(" + src + ");background-size:contain;";
container.style = bg;