Skip to content

Commit 9469c9a

Browse files
author
Chris K
committed
Fx for DFL-3256, Throws on disconnecting a remote client.
1 parent 9bec5f8 commit 9469c9a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/client/client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,9 @@ window.cls.Client = function()
208208
}
209209
else if (is_remote_connection)
210210
{
211-
UI.get_instance().get_button("toggle-remote-debug-overlay")
212-
.removeClass("alert");
211+
var button = UI.get_instance().get_button("toggle-remote-debug-overlay");
212+
if (button)
213+
button.removeClass("alert");
213214

214215
Overlay.get_instance().set_info_content(
215216
window.templates.remote_debug_waiting_help(port)

src/ui-scripts/overlay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ var Overlay = function()
6969

7070
this.set_info_content = function(template)
7171
{
72-
this.info_element.clearAndRender(template);
72+
if (this.info_element)
73+
this.info_element.clearAndRender(template);
7374
};
7475
};
7576

0 commit comments

Comments
 (0)