Simple function, for future use

This commit is contained in:
danbulant 2020-02-07 20:08:39 +01:00
parent d8041a78fa
commit 4bfa338c32

View file

@ -0,0 +1,7 @@
function setBackground(){
let bg = "https://picsum.photos/1280/720.webp";
document.body.style.background = "url('" + bg + "')";
}
export default setBackground;