Fix bug in grid loader

This commit is contained in:
Tissevert 2022-07-31 16:34:49 +02:00
parent 88483c72bf
commit 6e8d07e973

View file

@ -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) {