diff options
Diffstat (limited to 'src/js/pebble-js-app.js')
-rw-r--r-- | src/js/pebble-js-app.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/pebble-js-app.js b/src/js/pebble-js-app.js index e9d8b40..dea2037 100644 --- a/src/js/pebble-js-app.js +++ b/src/js/pebble-js-app.js @@ -24,7 +24,9 @@ Pebble.addEventListener("ready", function() { Pebble.addEventListener("showConfiguration", function() { console.log("showing configuration"); var cfg = '?config=' + encodeURI(JSON.stringify(options)); - Pebble.openURL("http://clusterrr.com/pebble_configs/mario.php" + cfg); + var watch = Pebble.getActiveWatchInfo(); + var platform = "&platform=" + ((watch != null) ? watch.platform : "unknown"); + Pebble.openURL("http://clusterrr.com/pebble_configs/mario.php" + cfg + platform); }); Pebble.addEventListener("webviewclosed", function(e) { |