Commit 6969b66d authored by paulirish's avatar paulirish Committed by Commit bot

DevTools: Add reload button to disconnection dialog

BUG=627640

Review-Url: https://codereview.chromium.org/2148563003
Cr-Commit-Position: refs/heads/master@{#406669}
parent 3555fc8a
...@@ -979,6 +979,8 @@ WebInspector.RemoteDebuggingTerminatedScreen = function(reason) ...@@ -979,6 +979,8 @@ WebInspector.RemoteDebuggingTerminatedScreen = function(reason)
message.createChild("span").textContent = WebInspector.UIString("Debugging connection was closed. Reason: "); message.createChild("span").textContent = WebInspector.UIString("Debugging connection was closed. Reason: ");
message.createChild("span", "reason").textContent = reason; message.createChild("span", "reason").textContent = reason;
this.contentElement.createChild("div", "message").textContent = WebInspector.UIString("Reconnect when ready by reopening DevTools."); this.contentElement.createChild("div", "message").textContent = WebInspector.UIString("Reconnect when ready by reopening DevTools.");
var button = createTextButton(WebInspector.UIString("Reconnect DevTools"), () => window.location.reload());
this.contentElement.createChild("div", "button").appendChild(button);
} }
/** /**
......
...@@ -5,15 +5,20 @@ ...@@ -5,15 +5,20 @@
*/ */
.widget { .widget {
padding: 25px; padding: 20px;
} }
.message { .message, .button {
font-size: larger; font-size: larger;
white-space: pre; white-space: pre;
margin: 5px; margin: 5px;
} }
.button {
text-align: center;
margin-top: 10px;
}
.reason { .reason {
color: #8b0000; color: #8b0000;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment