Fix bug in grid loader
This commit is contained in:
parent
88483c72bf
commit
6e8d07e973
1 changed files with 2 additions and 2 deletions
|
@ -14,12 +14,12 @@ function init() {
|
|||
}
|
||||
|
||||
function load() {
|
||||
Grid.clear();
|
||||
Mode.setEnabled(false, ['play', 'solve']);
|
||||
Async.run(
|
||||
Async.bind(
|
||||
File.pick({accept: 'text/json,.json'}),
|
||||
function(input) {
|
||||
Grid.clear();
|
||||
Mode.setEnabled(false, ['play', 'solve']);
|
||||
return File.load(input.files[0]);
|
||||
},
|
||||
function(data) {
|
||||
|
|
Loading…
Reference in a new issue