Skip to content

Commit

Permalink
Use open module to open in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Dec 4, 2015
1 parent 3dd7ef5 commit b04a970
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var fs = require('fs');
var git = require('parse-git-config');
var exec = require('child_process').exec;
var parse = require('github-url-from-git');
var open = require('./open');

function findBranch(config) {
for (var prop in config) {
Expand Down Expand Up @@ -54,7 +55,7 @@ function openInGitHub() {
githubLink = parsedUri + "/blob/" + branch + subdir + "#L" + lineIndex;
}

exec("start " + githubLink);
open(githubLink);
});
}

Expand Down

0 comments on commit b04a970

Please sign in to comment.