curiousdannii / parchment

The Interactive Fiction web app
https://iplayif.com
MIT License
430 stars 60 forks source link

Prevent jQuery throwing an error when there's no CSS #32

Closed juhana closed 8 years ago

juhana commented 8 years ago

I need/prefer to run tests without Parchment's own CSS. This patch prevents $(document).css() from throwing an error when the background color check doesn't find an element with a color set.