Skip to content
This repository was archived by the owner on Jul 6, 2020. It is now read-only.

Commit cc9fd0b

Browse files
committed
Fix window title
resolve #33
1 parent 8e448d1 commit cc9fd0b

File tree

3 files changed

+15
-21
lines changed

3 files changed

+15
-21
lines changed

build/toby.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Toby - A YouTube player for the desktop
33
//
44
// Frank Hale <frankhale@gmail.com>
5-
// 26 June 2015
5+
// 27 June 2015
66
//
77
// License: GNU GPL v2
88

@@ -366,6 +366,7 @@ var Toby = (function() {
366366
visibility: "hidden"
367367
}
368368
});
369+
369370
browser.setTitle(appTitle);
370371
}
371372
},
@@ -576,17 +577,13 @@ var Toby = (function() {
576577
}.bind(this), 1000);
577578
},
578579
componentWillReceiveProps: function(nextProps) {
579-
if(this.props.updateTitle !== undefined) {
580-
this.setState({
581-
updateTitle: this.props.updateTitle
582-
});
583-
}
580+
if(this.props.updateTitle !== undefined) {
581+
this.setState({
582+
updateTitle: this.props.updateTitle
583+
});
584+
}
584585
},
585586
render: function() {
586-
if(this.props.title !== "") {
587-
browser.setTitle(this.props.title);
588-
}
589-
590587
return (
591588
React.createElement("div", null,
592589
React.createElement("webview", {id: "webview", ref: "webview", src: "./player.html", style: this.props.style})

0 commit comments

Comments
 (0)