Don't overwrite electron deploy (#2142)

This commit is contained in:
Richard Knoll 2019-06-07 08:59:41 -07:00 committed by Abhijith Chatra
parent 00e50997f8
commit 555d673014

View File

@ -848,7 +848,7 @@ pxt.editor.initExtensionsAsync = function (opts: pxt.editor.ExtensionOptions): P
const isUwp = !!(window as any).Windows;
if (isUwp)
pxt.commands.deployCoreAsync = uwpDeployCoreAsync;
else if (canHID() || pxt.webBluetooth.hasPartialFlash())
else if ((canHID() || pxt.webBluetooth.hasPartialFlash()) && !pxt.BrowserUtils.isPxtElectron())
pxt.commands.deployCoreAsync = deployCoreAsync;
res.blocklyPatch = patchBlocks;