Skip to content

Commit

Permalink
Feature for /issues/102 Show file name page title.
Browse files Browse the repository at this point in the history
Shows the file name and diff type the same way as the dropdown menu does when
you have several diffs.
  • Loading branch information
daytonb committed Jul 7, 2018
1 parent 2aeb4f5 commit f327a7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webdiff/static/js/components.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ var makeRoot = function(filePairs, initiallySelectedIndex) {
render: function() {
var idx = this.getIndex(),
filePair = this.props.filePairs[idx];
document.title = "Diff: " + filePairDisplayName(filePair) + " ("+ filePair.type + ")";

return (
<div>
Expand Down

0 comments on commit f327a7e

Please sign in to comment.