gregziegan / goat

Annotate Images (or goats) On The Web™
http://gregziegan.github.io/goat
MIT License
74 stars 9 forks source link

Border Patrol - Make ports initial boot more robust #89

Closed gregziegan closed 7 years ago

gregziegan commented 7 years ago

What

This is a much more solid approach than just passing a JS object to a port.

Why

A runtime error will be thrown when JS does not have the correct structure to pass into the Elm program. We account for incorrect values in the Elm code now.