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:
parent
4dbc255ad5
commit
df71d695c3
|
@ -205,7 +205,7 @@ var storedPreset = GBjs.getAppStoredPreset();
|
||||||
document.addEventListener('DOMContentLoaded', function(){
|
document.addEventListener('DOMContentLoaded', function(){
|
||||||
if (jsConfigFile != null) {
|
if (jsConfigFile != null) {
|
||||||
loadScript(jsConfigFile, function() {
|
loadScript(jsConfigFile, function() {
|
||||||
Pebble.evaluate('ready');
|
Pebble.evaluate('ready', [{'type': "ready"}]); //callback object apparently needed by some watchfaces
|
||||||
if (getURLVariable('config') == 'true') {
|
if (getURLVariable('config') == 'true') {
|
||||||
showStep("step2");
|
showStep("step2");
|
||||||
var json_string = getURLVariable('json');
|
var json_string = getURLVariable('json');
|
||||||
|
|
Loading…
Reference in New Issue