Don't overwrite electron deploy (#2142)
This commit is contained in:
parent
00e50997f8
commit
555d673014
@ -848,7 +848,7 @@ pxt.editor.initExtensionsAsync = function (opts: pxt.editor.ExtensionOptions): P
|
|||||||
const isUwp = !!(window as any).Windows;
|
const isUwp = !!(window as any).Windows;
|
||||||
if (isUwp)
|
if (isUwp)
|
||||||
pxt.commands.deployCoreAsync = uwpDeployCoreAsync;
|
pxt.commands.deployCoreAsync = uwpDeployCoreAsync;
|
||||||
else if (canHID() || pxt.webBluetooth.hasPartialFlash())
|
else if ((canHID() || pxt.webBluetooth.hasPartialFlash()) && !pxt.BrowserUtils.isPxtElectron())
|
||||||
pxt.commands.deployCoreAsync = deployCoreAsync;
|
pxt.commands.deployCoreAsync = deployCoreAsync;
|
||||||
|
|
||||||
res.blocklyPatch = patchBlocks;
|
res.blocklyPatch = patchBlocks;
|
||||||
|
Loading…
Reference in New Issue
Block a user