Commit 47506b38 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Fix loading version offline if getJSON failed

parent 33c5b428
...@@ -602,6 +602,11 @@ var run = function () { ...@@ -602,6 +602,11 @@ var run = function () {
} }
loadVersion(selectedVersion); 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(); storage.sync();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment