mirror of https://github.com/docker/docs.git
Fix reload bug
This commit is contained in:
parent
cb2e552496
commit
2001e36624
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue