mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 20:48:27 +00:00
fix: empty options
This commit is contained in:
parent
4128213acb
commit
305b4e1258
@ -16,7 +16,7 @@ function frame(callback) {
|
|||||||
requestAnimationFrame(animate);
|
requestAnimationFrame(animate);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const backgroundImage = function (src, animateOptions) {
|
export const backgroundImage = function (src, animateOptions = {}) {
|
||||||
const container = document.getElementById('code');
|
const container = document.getElementById('code');
|
||||||
const bg = 'background-image:url(' + src + ');background-size:contain;';
|
const bg = 'background-image:url(' + src + ');background-size:contain;';
|
||||||
container.style = bg;
|
container.style = bg;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user