Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove some console logging and show api limit

  • Loading branch information...
commit 83ba5936966edcc8315e2a4d0fce3d23e4dde155 1 parent 506b4e7
@schacon schacon authored
Showing with 2 additions and 2 deletions.
  1. +1 −2  public/js/terminal.js
  2. +1 −0  views/term.erb
View
3  public/js/terminal.js
@@ -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
1  views/term.erb
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.