Clean up for demo apps.

This commit is contained in:
Neil Fraser
2016-01-08 13:58:18 -08:00
parent 4253de041a
commit 80f36f0629
41 changed files with 144 additions and 61 deletions

View File

@@ -517,7 +517,9 @@ Code.discard = function() {
if (count < 2 ||
window.confirm(Blockly.Msg.DELETE_ALL_BLOCKS.replace('%1', count))) {
Code.workspace.clear();
window.location.hash = '';
if (window.location.hash) {
window.location.hash = '';
}
}
};