Commit 024e86e
authored
fix: stop broken background images from displaying (@mattlau1) (monkeytypegame#6526)
### Description
If the specified background image is invalid, then we can hide it using
`this.style.display='none'`, which will also hide the default white
outline and broken image icon
Also fixed a typo in the notification for it (temporairly ->
temporarily)
Tested fix by entering invalid custom background URL in settings (i.e.
`https://tehtuhgsfdsfjsdg.com/test.jpg`)
Closes monkeytypegame#6524
<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->
<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[monkeytypegame#1234](monkeytypegame#1234) -->
<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
Thanks!! :)1 parent c7ac9ad commit 024e86e
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
0 commit comments