Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Minor examples tweak for friendlier output #115

Merged
merged 2 commits into from

2 participants

@sandfox

Pretty self explanatory, feel free to squash these 2 commits together. Only have browser to hand so had to use github gui and don't think I can rebase in the browser.

@argon argon merged commit 1137720 into argon:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +2 −2 examples/feedback.js
  2. +1 −1  examples/sending-to-multiple-devices.js
View
4 examples/feedback.js
@@ -12,6 +12,6 @@ function handleFeedback(feedbackData) {
time = feedbackData[i].time;
device = feedbackData[i].device;
- console.log("Device: " + device.toString() + " has been unreachable, since: " + time);
+ console.log("Device: " + device.toString('hex') + " has been unreachable, since: " + time);
}
-}
+}
View
2  examples/sending-to-multiple-devices.js
@@ -16,7 +16,7 @@ service.on('connected', function() {
});
service.on('transmitted', function(notification, device) {
- console.log("Notification transmitted to:" + device.token.toString());
+ console.log("Notification transmitted to:" + device.token.toString('hex'));
});
service.on('transmissionError', function(errCode, notification, device) {
Something went wrong with that request. Please try again.