summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-10-31 14:53:55 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-10-31 14:53:55 +0000
commit246b42b63ac4803ad48ac81df52c674e98206c0e (patch)
treee31e316bafbb8a859fdb7e6df606e4a16672ae0a /src
parent7cd23e3dabc49658199eac44e85dee2da5d5a0d2 (diff)
downloadthrow_simulation-246b42b63ac4803ad48ac81df52c674e98206c0e.tar
throw_simulation-246b42b63ac4803ad48ac81df52c674e98206c0e.tar.gz
throw_simulation-246b42b63ac4803ad48ac81df52c674e98206c0e.zip
Don't hardcode background colour, use inherit
Diffstat (limited to 'src')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index ab8e047..21d2af9 100644
--- a/src/index.js
+++ b/src/index.js
@@ -24,7 +24,7 @@ const objElement = document.querySelector("#throwable");
const queryParams = new URLSearchParams(window.location.search);
const image = queryParams.get("image");
if (image !== null) {
- objElement.style.backgroundColor = "white";
+ objElement.style.backgroundColor = "inherit";
objElement.style.backgroundImage = `url(${decodeURI(image)})`;
}