mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 03:16:51 +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:
parent
313499abd4
commit
3e9898d86c
@ -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');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user