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
here
Daniele Gobbetti 2016-12-09 11:55:11 +01:00
parent 313499abd4
commit 3e9898d86c
1 changed files with 2 additions and 2 deletions

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');
}
});