Admiral-Billy / Pokerogue-App

An app to play Pokerogue.net in an app window. Wow!
MIT License
393 stars 65 forks source link

enforced application/json as content-type for json files in the respo… #128

Closed Nobbinobb closed 1 month ago

Nobbinobb commented 1 month ago

Some moves like Tackle or Tailwhip failed to load while running the App in Offline Mode. The Content-Type in the response header for these moves where not application/json which resulted in the error in the calling method. I added a check in the overriden fetch method to see if the a file was a json and if so manually set the Content-Type of the response header. With this change the App could start in Offline Mode again.

Tested with a Linux Build on Steamdeck