mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 04:46:51 +01: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:
parent
1430619c30
commit
69be5dbbc7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user