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:
Ziya ERKOC
2018-01-19 21:54:53 +03:00
committed by Andrew n marshall
parent 0d085c27b2
commit 4bbd83820c

View File

@@ -139,7 +139,7 @@ BlockExporterController.prototype.export = function() {
var fileType = (language == 'JavaScript') ? 'javascript' : 'plain';
// Download the file.
FactoryUtils.createAndDownloadFile(
genStubs, generatorStub_filename, fileType);
genStubs, generatorStub_filename + '.js', fileType);
BlocklyDevTools.Analytics.onExport(
BlocklyDevTools.Analytics.GENERATOR,
(fileType == 'javascript' ?