Update script.js

This commit is contained in:
Elizabeth Hunt 2023-04-30 14:37:06 -06:00 committed by GitHub
parent 21ea36e370
commit b4b95a18f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ const makeSvg = (coords) => {
return ` return `
<svg xmlns='http://www.w3.org/2000/svg' width='${window.innerWidth}px' height='${window.innerHeight}px'> <svg xmlns='http://www.w3.org/2000/svg' width='${window.innerWidth}px' height='${window.innerHeight}px'>
<rect x="0" y="0" width="${window.innerWidth}" height="${window.innerHeight}" fill="black"/> <rect x="0" y="0" width="${window.innerWidth}" height="${window.innerHeight}" fill="${document.body.style.backgroundColor || "black"}"/>
${coords.map((_,i) => { ${coords.map((_,i) => {
if (i == 0) { if (i == 0) {
return; return;