fix block highlight on code stop
This commit is contained in:
		@@ -429,8 +429,8 @@ window.onload = function() {
 | 
				
			|||||||
        block_highlight = new WebSocket("ws://" + robotServer + ":80/p2p/browser/" + robotID + "-highlight/");
 | 
					        block_highlight = new WebSocket("ws://" + robotServer + ":80/p2p/browser/" + robotID + "-highlight/");
 | 
				
			||||||
        /* when there is a message from the WebSocket */
 | 
					        /* when there is a message from the WebSocket */
 | 
				
			||||||
        block_highlight.onmessage = function(evt) {
 | 
					        block_highlight.onmessage = function(evt) {
 | 
				
			||||||
            /* when scope is received */
 | 
					            /* when block id received and sumorobot is started */
 | 
				
			||||||
            if (evt.data.length == 20) {
 | 
					            if (evt.data.length == 20 && sumostart) {
 | 
				
			||||||
                workspace.highlightBlock(evt.data);
 | 
					                workspace.highlightBlock(evt.data);
 | 
				
			||||||
                highlighted = evt.data;
 | 
					                highlighted = evt.data;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user