mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02: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:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user