lightning-js / blits

The Lightning 3 App Development Framework
Apache License 2.0
58 stars 9 forks source link

Blits.Launch: Handle empty settings #93

Closed EwanRoycroft closed 1 month ago

EwanRoycroft commented 1 month ago

I was just getting started with Blits and was confused to get errors like "Cannot use 'in' operator to search for 'fontLoader' in undefined" and "Cannot read properties of undefined (reading 'w')". Turns out I hadn't provided any settings object to Blits.Launch().

I suggest either handling an undefined/null settings object, or throwing a more meaningful error if one is provided.

michielvandergeest commented 1 month ago

Hey @EwanRoycroft, good point - thanks for reporting this :) That should be easy to add in. Will get that in, in the next release.

michielvandergeest commented 1 month ago

Released in 0.9.9.