mirror of
https://github.com/google/blockly.git
synced 2025-12-16 14:20:10 +01:00
Update block_exporter_controller.js
Default export type of Generator Stub section is set to '.js' while downloading it in Block Export (in Block Factory)
This commit is contained in:
committed by
Andrew n marshall
parent
0d085c27b2
commit
4bbd83820c
@@ -139,7 +139,7 @@ BlockExporterController.prototype.export = function() {
|
|||||||
var fileType = (language == 'JavaScript') ? 'javascript' : 'plain';
|
var fileType = (language == 'JavaScript') ? 'javascript' : 'plain';
|
||||||
// Download the file.
|
// Download the file.
|
||||||
FactoryUtils.createAndDownloadFile(
|
FactoryUtils.createAndDownloadFile(
|
||||||
genStubs, generatorStub_filename, fileType);
|
genStubs, generatorStub_filename + '.js', fileType);
|
||||||
BlocklyDevTools.Analytics.onExport(
|
BlocklyDevTools.Analytics.onExport(
|
||||||
BlocklyDevTools.Analytics.GENERATOR,
|
BlocklyDevTools.Analytics.GENERATOR,
|
||||||
(fileType == 'javascript' ?
|
(fileType == 'javascript' ?
|
||||||
|
|||||||
Reference in New Issue
Block a user