File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments