FlashbackSRS / flashback

Flashback Client App
MIT License
4 stars 1 forks source link

Change base URL in cardframe #48

Open flimzy opened 7 years ago

flimzy commented 7 years ago

The base URL in the card frame is set to the parent's domain, so that requests for cardframe.js and cardframe.css, but this means requests for all other assets, which lead to a 404, are also sent to the server.

In a mobile app, and in testing, this doesn't matter much, but in production it will mean a ton of unnecessary HTTP traffic, which all leads to 404s.

An attempt should be made to not set the base URL, and set the full path to the JS and CSS assets explicitly.