Fix loading version offline if getJSON failed

pull/1/head
Alex Beregszaszi 8 years ago
parent 33c5b42805
commit 47506b385e
  1. 5
      src/app.js

@ -602,6 +602,11 @@ var run = function () {
}
loadVersion(selectedVersion);
}).fail(function (xhr, text, err) {
// loading failed for some reason, fall back to local compiler
$('#versionSelector').append(new Option('latest local version', 'builtin'));
loadVersion('builtin');
});
storage.sync();

Loading…
Cancel
Save