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.
master
Daniele Gobbetti 2016-06-26 14:13:47 +02:00
parent 1430619c30
commit 69be5dbbc7
1 changed files with 2 additions and 5 deletions

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