Permalink
Browse files

remove some console logging and show api limit

  • Loading branch information...
1 parent 506b4e7 commit 83ba5936966edcc8315e2a4d0fce3d23e4dde155 @schacon schacon committed Jun 21, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −2 public/js/terminal.js
  2. +1 −0 views/term.erb
@@ -100,6 +100,7 @@ function runNext() {
var pollTimer = 30000
function checkUser() {
ghUser.show(function(resp) {
+ $('#ratelimit').text("API Limit: " + resp.meta["X-RateLimit-Remaining"] + ' / ' + resp.meta["X-RateLimit-Limit"])
$('#avatar').html("<img src='" + resp.data.avatar_url + "'>")
setTimeout("checkUser()", pollTimer)
})
@@ -193,9 +194,7 @@ function runCommit(message) {
}
function changeState(newState) {
- console.log(newState)
if (newState.search('/') >= 0) {
- console.log("found it")
if(currentState == 'top') {
// do i really need to authenticate this? no.
userRepo = newState.split('/')
View
@@ -49,6 +49,7 @@
<ul>
<li><span id="avatar"></span></li>
<li><span id="message"></span></li>
+ <li><span id="ratelimit"></span></li>
<li><span><a href="#" id="prompter">Force Prompt</a></span></li>
<li><span><a href="#" id="helper">Help</a></span></li>
</ul>

0 comments on commit 83ba593

Please sign in to comment.