fix: empty options
This commit is contained in:
parent
4128213acb
commit
305b4e1258
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue