mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Clean up for demo apps.
This commit is contained in:
@@ -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 = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user