From abb1d2ec04e32ad63f2c87e4fe38a8f0a88d919c Mon Sep 17 00:00:00 2001 From: dario-cfpt Date: Mon, 20 Jan 2020 13:00:37 +0100 Subject: [PATCH] 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. --- mobile/config.xml | 10 ++++++---- mobile/www/js/routes.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mobile/config.xml b/mobile/config.xml index 1f06902..17777f4 100644 --- a/mobile/config.xml +++ b/mobile/config.xml @@ -1,8 +1,8 @@ - + FE_Charts - A sample Apache Cordova application that responds to the deviceready event. + Fire Emblem Charts is a mobile application that allows you to view the statistics of the characters in the game Fire Emblem Three Houses in the form of graphics. Apache Cordova Team @@ -17,10 +17,12 @@ - + + + - + \ No newline at end of file diff --git a/mobile/www/js/routes.js b/mobile/www/js/routes.js index f588d52..50d8ea1 100644 --- a/mobile/www/js/routes.js +++ b/mobile/www/js/routes.js @@ -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();