1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-03 02:06:21 +02:00

Set the json directly instead of using parseconfig

Some watchfaces do some processing on the incoming json, and we are storing the json after the fact, and double parsing isn't good.
This commit is contained in:
Daniele Gobbetti 2016-06-26 14:13:47 +02:00
parent 1430619c30
commit 69be5dbbc7

View File

@ -101,11 +101,8 @@ function gbPebble() {
for (var i = 0; i < presetElements.length; i ++) {
presetElements[i].style.display = 'none';
}
var json_string = GBjs.getAppStoredPreset();
var t = new Object();
t.response = json_string;
if (json_string != '')
Pebble.parseconfig(t);
self.configurationValues = GBjs.getAppStoredPreset();
document.getElementById("jsondata").innerHTML=self.configurationValues;
}
//needs to be called like this because of original Pebble function name