Skip to content

Commit f327a7e

Browse files
committed
Feature for /issues/102 Show file name page title.
Shows the file name and diff type the same way as the dropdown menu does when you have several diffs.
1 parent 2aeb4f5 commit f327a7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webdiff/static/js/components.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ var makeRoot = function(filePairs, initiallySelectedIndex) {
5656
render: function() {
5757
var idx = this.getIndex(),
5858
filePair = this.props.filePairs[idx];
59+
document.title = "Diff: " + filePairDisplayName(filePair) + " ("+ filePair.type + ")";
5960

6061
return (
6162
<div>

0 commit comments

Comments
 (0)