Fix reload bug

This commit is contained in:
Jeffrey Morgan 2015-02-17 00:53:40 -08:00
parent cb2e552496
commit 2001e36624
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@ var ContainerHomePreview = React.createClass({
//HACK: if the title is the host:port the page probably hasn't loaded yet
if (this.state.ports[this.state.defaultPort].url.replace('http://', '') === webview.getTitle()) {
setTimeout(function () {
webview.reload();
try {
webview.reload();
} catch (err) {
}
}, 1000);
}
});