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() {
|
function load() {
|
||||||
Grid.clear();
|
|
||||||
Mode.setEnabled(false, ['play', 'solve']);
|
|
||||||
Async.run(
|
Async.run(
|
||||||
Async.bind(
|
Async.bind(
|
||||||
File.pick({accept: 'text/json,.json'}),
|
File.pick({accept: 'text/json,.json'}),
|
||||||
function(input) {
|
function(input) {
|
||||||
|
Grid.clear();
|
||||||
|
Mode.setEnabled(false, ['play', 'solve']);
|
||||||
return File.load(input.files[0]);
|
return File.load(input.files[0]);
|
||||||
},
|
},
|
||||||
function(data) {
|
function(data) {
|
||||||
|
|
Loading…
Reference in a new issue