diff options
author | bahbka <bahbka@gmail.com> | 2014-07-08 10:10:06 +0400 |
---|---|---|
committer | bahbka <bahbka@gmail.com> | 2014-07-08 10:10:06 +0400 |
commit | 26f6cb9285031b3de260869595095e72cfaf889f (patch) | |
tree | 06e411e4588c0db5eef0b68972b60da30c895042 | |
parent | 426dca7cbfa51b6c247a7c0adbf6c692bf8e1a3a (diff) |
Added HTTP header Pebble-Token.
-rw-r--r-- | appinfo.json | 4 | ||||
-rw-r--r-- | resources/configuration.html | 2 | ||||
-rw-r--r-- | src/js/pebble-js-app.src.js | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/appinfo.json b/appinfo.json index 14386ff..f50ad67 100644 --- a/appinfo.json +++ b/appinfo.json @@ -3,8 +3,8 @@ "shortName": "My Data", "longName": "My Data", "companyName": "bahbka", - "versionCode": 210, - "versionLabel": "2.1.0", + "versionCode": 211, + "versionLabel": "2.1.1", "watchapp": { "watchface": false }, diff --git a/resources/configuration.html b/resources/configuration.html index 9edae1c..c3d2cd1 100644 --- a/resources/configuration.html +++ b/resources/configuration.html @@ -54,7 +54,7 @@ vim: sw=2 ts=2 expandtab ai --> </head> <body onload="put_config();"> <h1>My Data</h1> - <small>v2.1.0, by bahbka</small> + <small>v2.1.1, by bahbka</small> <hr size="1" /> <form action="javascript: get_config();" id="config_form"> diff --git a/src/js/pebble-js-app.src.js b/src/js/pebble-js-app.src.js index 7358525..099a2f9 100644 --- a/src/js/pebble-js-app.src.js +++ b/src/js/pebble-js-app.src.js @@ -25,6 +25,8 @@ function http_request(url) { var req = new XMLHttpRequest(); req.open('GET', url, true); + req.setRequestHeader('Pebble-Token', Pebble.getAccountToken()); + req.onload = function(e) { if (req.readyState == 4) { |