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:
parent
1430619c30
commit
69be5dbbc7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue