diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-10-31 14:53:55 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-10-31 14:53:55 +0000 |
commit | 246b42b63ac4803ad48ac81df52c674e98206c0e (patch) | |
tree | e31e316bafbb8a859fdb7e6df606e4a16672ae0a /src/index.js | |
parent | 7cd23e3dabc49658199eac44e85dee2da5d5a0d2 (diff) | |
download | throw_simulation-246b42b63ac4803ad48ac81df52c674e98206c0e.tar throw_simulation-246b42b63ac4803ad48ac81df52c674e98206c0e.tar.gz throw_simulation-246b42b63ac4803ad48ac81df52c674e98206c0e.zip |
Don't hardcode background colour, use inherit
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 2 |
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)})`; } |