Skip to content

Commit

Permalink
CodeClimate fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dracco1993 committed Jan 8, 2017
1 parent 1fdac61 commit 93bb7af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .jsbeautifyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"indent_size": 2,
"indent_char": " ",
"other": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": true,
"indent_handlebars": true,
"object": {}
}
6 changes: 3 additions & 3 deletions githubutils.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name GitHub Utils
// @description Something will go here...
// @version 0.3.0
// @version 0.3.1
// @updateURL https://github.com/dracco1993/GitHubUtils/raw/master/githubutils.user.js
// @downloadURL https://github.com/dracco1993/GitHubUtils/raw/master/githubutils.user.js
// @author @dracco1993
Expand All @@ -19,12 +19,12 @@ var urlMatcher = /(?:\/.+?){2}\/pulls/;
'use strict';
init();

document.addEventListener("pjax:end", function() {
document.addEventListener('pjax:end', function() {
if(Array.isArray(window.location.pathname.match(urlMatcher))){
init();
}
});
})();
}());

function init(){
username = getUsername();
Expand Down

0 comments on commit 93bb7af

Please sign in to comment.