From 305b4e12583100353f73b9b6da62731050aff4a2 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Wed, 16 Mar 2022 23:12:54 +0100 Subject: [PATCH] fix: empty options --- repl/src/ui.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repl/src/ui.mjs b/repl/src/ui.mjs index b95dc764..c9c5a9cd 100644 --- a/repl/src/ui.mjs +++ b/repl/src/ui.mjs @@ -16,7 +16,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;