Updated config to fix clear text errors

A net::ERR_CLEARTEXT_NOT_PERMITTED occured when using the app on android
phone, we have to force the android to allow the communication to fix
the problem.
More info : https://stackoverflow.com/a/54752717/10736081

Also fixed a problem with the images path when running the app on
mobile.
This commit is contained in:
dario-cfpt
2020-01-20 13:00:37 +01:00
parent 2af1526b9f
commit abb1d2ec04
2 changed files with 7 additions and 5 deletions

View File

@ -25,7 +25,7 @@ routes = [
: char.firstName;
$$("#title-char").text(charFullName);
$$("#picture-char").attr("src", "/img/characters/" + char.firstName + ".png");
$$("#picture-char").attr("src", "img/characters/" + char.firstName + ".png");
actualCharId = charId;
createTableOfStats();
displayTableOfGrowthRates();