Skip to content
Browse files

Prettier console comments

  • Loading branch information...
1 parent 4427f64 commit ea2d427622049a08df0a5cfe69614326651f5dc4 @jrconlin committed Apr 30, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/crypt_test.html
View
12 test/crypt_test.html
@@ -8,7 +8,7 @@
<body>
<section class="encrypted">
<h2>Encrypted Stuff</h2>
- <p>This page attempts to send an encrypted message to itself.</p>
+ <p>This page attempts to send an encrypted message to itself. For added fun, open the debugging console.</p>
<form id="encrypted">
<p><label for="title">Title:</label><input name="title" value="Shh! This is a secret!"/></p>
<p><label for="body">Body:</label><input name="body" value="Yay! it worked!" /></p>
@@ -54,8 +54,8 @@
'actionUrl': unencStuff.actionUrl.value,
'cryptoBlock': kb};
// and post it to the URL.
- console.debug('Post', keyBundle.url);
- console.debug('post:', JSON.stringify(notif));
+ console.debug('Posting to ', keyBundle.url);
+ console.debug('POST body:', JSON.stringify(notif));
xhr.open('POST', keyBundle.url);
xhr.send(JSON.stringify(notif));
};
@@ -64,12 +64,12 @@
function send() {
- console.debug('sending message');
+ console.debug('Sending message');
var notif = navigator.mozNotification;
if (notif && notif.requestRemotePermission){
var cr = navigator.mozNotification.checkRemotePermission();
cr.onsuccess = function() {
- console.debug('check success', cr.result);
+ console.debug('Check success', cr.result);
};
if (cr.result.url) {
// We've already registered this site.
@@ -85,7 +85,7 @@
}
}
else {
- alert('fail');
+ alert('fail. Something went horribly wrong.');
}
}

0 comments on commit ea2d427

Please sign in to comment.
Something went wrong with that request. Please try again.