1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-26 08:33:27 +02:00

Pebble: pass an object to the ready event handlers

apparently also the ready event needs an object for some watchfaces. Reported in #643 (not the main report)
This commit is contained in:
Daniele Gobbetti 2017-04-08 08:50:18 +02:00
parent 4dbc255ad5
commit df71d695c3

View File

@ -205,7 +205,7 @@ var storedPreset = GBjs.getAppStoredPreset();
document.addEventListener('DOMContentLoaded', function(){
if (jsConfigFile != null) {
loadScript(jsConfigFile, function() {
Pebble.evaluate('ready');
Pebble.evaluate('ready', [{'type': "ready"}]); //callback object apparently needed by some watchfaces
if (getURLVariable('config') == 'true') {
showStep("step2");
var json_string = getURLVariable('json');