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
|
//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()) {
|
if (this.state.ports[this.state.defaultPort].url.replace('http://', '') === webview.getTitle()) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
try {
|
||||||
webview.reload();
|
webview.reload();
|
||||||
|
} catch (err) {
|
||||||
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue