ddrillini / uiuc-wendy

Issue tracker for UIUC's ITG cabinet, and public assets.
http://ddrillini.club
2 stars 1 forks source link

card draw tester infinite lop that eats cpu if you fail to load json #104

Closed ianklatzco closed 5 years ago

ianklatzco commented 5 years ago

if you file:// url to test it can't load the json b/c you can't xmlhttprequest on file://'s so it just infinite loops somewhere probbaly where it checks f the number it generated is in the list

ianklatzco commented 5 years ago

here's one solution but it's not-ideal https://stackoverflow.com/questions/4819060/allow-google-chrome-to-use-xmlhttprequest-to-load-a-url-from-a-local-file

ianklatzco commented 5 years ago

bug occurs in randomize function

ianklatzco commented 5 years ago

fixed it by throwing an error if json fails to load and noisily alerts you