pxt-> makecode (#412)

* updated target names

* updated pxt dependency
This commit is contained in:
Peli de Halleux
2017-06-13 12:56:55 -07:00
committed by GitHub
parent 8a2d46d447
commit e4679f207a
2 changed files with 8 additions and 8 deletions

View File

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