added pebble-js-app.js

master
Alina Marquardt 2015-11-14 19:44:20 +01:00
parent 6d69c296d9
commit c9d52de376
1 changed files with 9 additions and 0 deletions

9
src/js/pebble-js-app.js Normal file
View File

@ -0,0 +1,9 @@
Pebble.addEventListener('ready', function() {
console.log('PebbleKit JS ready!');
});
Pebble.addEventListener('showConfiguration', function() {
var url='http://pebble.lastfuture.de/config/supersimple/';
console.log('Showing configuration page: '+url);
Pebble.openURL(url);
});