mirror of
https://github.com/docker/docs.git
synced 2026-04-12 22:36:10 +07:00
Fix reload bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user