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)
master
Daniele Gobbetti 2017-04-08 08:50:18 +02:00
parent 4dbc255ad5
commit df71d695c3
1 changed files with 1 additions and 1 deletions

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