Updating all pxt.microbit.org reference to makecode.microbit.org (#460)

This commit is contained in:
Abhijith Chatra
2017-07-24 13:39:27 -07:00
committed by Peli de Halleux
parent b3e5e41dbc
commit 5c82a0fcc6
21 changed files with 27 additions and 36 deletions

View File

@ -40,7 +40,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; });