Skip to content

Commit 4c1fd4c

Browse files
committed
Merge branch 'gh-pages' of github.com:git-school/visualizing-git into gh-pages
2 parents 70931b8 + 5e4ede6 commit 4c1fd4c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/controlbox.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ function(_yargs, d3, demos) {
226226

227227
document.getElementById('last-command').textContent = entry
228228

229+
if (entry.trim() === 'pres()') {
230+
window.pres()
231+
return
232+
}
233+
229234
if (entry.trim().toLowerCase().indexOf('mode ') === 0) {
230235
var mode = entry.trim().split(' ').pop().trim()
231236
this.changeMode(mode)
@@ -658,7 +663,7 @@ function(_yargs, d3, demos) {
658663

659664
for (fb in fetchBranches) {
660665
if (origin.branches.indexOf(fb) > -1) {
661-
checkCommit(origin.getCommit(fb))
666+
checkCommit(origin.getCommit(fb), fb)
662667
}
663668
}
664669

0 commit comments

Comments
 (0)