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