1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Pebble: call the "ready" method also when returning from the external web browser

Additionally don't call decodeURIcomponent as the getURLVariable function already does this. Needed by apps like "slides of time". Closes 454
This commit is contained in:
Daniele Gobbetti 2016-12-09 11:55:11 +01:00
parent 313499abd4
commit 3e9898d86c

View File

@ -195,9 +195,10 @@ var storedPreset = GBjs.getAppStoredPreset();
document.addEventListener('DOMContentLoaded', function(){
if (jsConfigFile != null) {
loadScript(jsConfigFile, function() {
Pebble.evaluate('ready');
if (getURLVariable('config') == 'true') {
showStep("step2");
var json_string = decodeURIComponent(getURLVariable('json'));
var json_string = getURLVariable('json');
var t = new Object();
t.response = json_string;
if (json_string != '') {
@ -211,7 +212,6 @@ if (jsConfigFile != null) {
presetElements[i].style.display = 'none';
}
}
Pebble.evaluate('ready');
Pebble.evaluate('showConfiguration');
}
});