|
@@ -73,7 +73,7 @@ Ardublockly.bindActionFunctions = function () {
|
|
$("#Storage_export_modal").modal("close");
|
|
$("#Storage_export_modal").modal("close");
|
|
});
|
|
});
|
|
Ardublockly.bindClick_('workspace_screenshot', () => {
|
|
Ardublockly.bindClick_('workspace_screenshot', () => {
|
|
- let name = $("#sketch_name").val();
|
|
|
|
|
|
+ let name = $("#sketch_name").val() != '' ? $("#sketch_name").val() : "未命名";
|
|
Ardublockly.workspace_capture(name);
|
|
Ardublockly.workspace_capture(name);
|
|
Materialize.toast('截图已经保存至"下载"', 3000, 'shareUrl');
|
|
Materialize.toast('截图已经保存至"下载"', 3000, 'shareUrl');
|
|
});
|
|
});
|