Initial code commit
This commit is contained in:
9
src/pkjs/index.js
Normal file
9
src/pkjs/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
Pebble.addEventListener("ready", function (e) {
|
||||
Pebble.sendAppMessage({ APP_READY: true });
|
||||
});
|
||||
|
||||
Pebble.addEventListener("appmessage", function (dict) {
|
||||
if (dict.payload["API_FULL_URL"]) {
|
||||
console.log("Time to harass " + dict.payload["API_FULL_URL"] + " to find what you watched at " + dict.payload["SLEEP_TIME"]);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user