monkeytype/frontend
Matthew Lau 024e86e842
fix: stop broken background images from displaying (@mattlau1) (#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 #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:
[#1234](https://github.com/monkeytypegame/monkeytype/pull/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!! :)
2025-05-05 11:36:15 +02:00
..
__tests__ impr: add fallback and migrate to parsejsonwithschema (@miodec) (#6518) 2025-05-03 12:14:35 +02:00
docker fix: local development using docker not working with pnpm (@fehmer) (#6401) 2025-03-26 13:11:02 +01:00
scripts refactor: make funbox settings an array (@fehmer) (#6487) 2025-04-29 11:31:44 +02:00
src fix: stop broken background images from displaying (@mattlau1) (#6526) 2025-05-05 11:36:15 +02:00
static fix(arabic egypt): remove offensive word 2025-04-30 08:54:57 +02:00
.eslintrc.cjs
.firebaserc_example
.oxlintrc.json refactor: enable ban-ts-comment rule 2025-04-16 19:15:30 +02:00
firebase.json
gulpfile.js chore: add oxlint (@miodec) (#6455) 2025-04-16 17:18:50 +02:00
knip.json
package.json build(deps-dev): bump vite from 6.3.0 to 6.3.4 in /frontend (#6510) 2025-05-02 19:50:40 +02:00
tsconfig.json refactor: remove global type namespaces (@miodec) (#5907) 2024-09-23 15:34:16 +02:00
vite.config.dev.js chore: add oxlint (@miodec) (#6455) 2025-04-16 17:18:50 +02:00
vite.config.js chore: add sentry 2025-04-29 17:36:23 +02:00
vite.config.prod.js chore: try to use auto commit detection again 2025-05-03 12:02:51 +02:00
vitest.config.js refactor: move funboxes to a shared package (@miodec) (#6063) 2024-12-04 16:11:07 +01:00