@@ -61,7 +61,7 @@ function findNewDevices() {
 | 
			
		||||
function main() {
 | 
			
		||||
  // Register new clients in the [ports] global variable.
 | 
			
		||||
  chrome.runtime.onConnectExternal.addListener(function (port) {
 | 
			
		||||
    if (/^(micro:bit|touchdevelop|yelm|pxt|codemicrobit|codethemicrobit|pxt.microbit.org)$/.test(port.name)) {
 | 
			
		||||
    if (/^(micro:bit|touchdevelop|yelm|pxt|codemicrobit|codethemicrobit|pxt.microbit.org|makecode)$/.test(port.name)) {
 | 
			
		||||
      ports.push(port);
 | 
			
		||||
      port.onDisconnect.addListener(function () {
 | 
			
		||||
        ports = ports.filter(function (x) { return x != port });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user