change exception name

This commit is contained in:
Bui 2018-10-10 21:07:27 +01:00
parent f46fc7a22d
commit 3e32dbdb57

View File

@ -23,7 +23,7 @@ class Loader{
var parsed = JSON.parse(resp)
versionLink.setAttribute("href", "https://github.com/bui/taiko-web/commit/" + parsed.commit)
versionLink.appendChild(document.createTextNode("taiko-web ver." + parsed.version + " (" + parsed.commit_short + ")"))
} catch(SyntaxError) {
} catch(e) {
versionLink.setAttribute("href", "https://github.com/bui/taiko-web")
versionLink.appendChild(document.createTextNode("taiko-web (unknown version)"))
} finally {