Skip to content

Commit

Permalink
Wrong var name, fix shift+G couldn't be triggered twice
Browse files Browse the repository at this point in the history
  • Loading branch information
muan committed Dec 9, 2013
1 parent 04a477b commit 3bd315a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GitHub Notification Helper for Gmail",
"version": "0.0.5",
"version": "0.0.6",
"manifest_version": 2,
"description": "Add links to GitHub threads and shortcuts to your Gmail interface.",
"homepage_url": "http://github-gmail.muan.co",
Expand Down
3 changes: 2 additions & 1 deletion src/inject/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $(window).on('hashchange', function() {
})

$(document).on("keypress", function(event) {

// Shortcut: bind shift + G, if a button exist and event not in a textarea
if( event.shiftKey && event.keyCode == 71 && window.idled && $(".github-link:visible")[0] && notAnInput(event.target)) {
triggerGitHubLink()
Expand All @@ -35,7 +36,7 @@ function triggerGitHubLink () {
window.idled = false

$(".github-link:visible")[0].dispatchEvent(fakeClick())
setTimeout( function(){ window.clicked = true }, 1000)
setTimeout( function(){ window.idled = true }, 1000)
}

// Go to selected email GitHub thread
Expand Down

0 comments on commit 3bd315a

Please sign in to comment.