Commit 3e32dbdb authored by Bui's avatar Bui

change exception name

parent f46fc7a2
...@@ -23,7 +23,7 @@ class Loader{ ...@@ -23,7 +23,7 @@ class Loader{
var parsed = JSON.parse(resp) var parsed = JSON.parse(resp)
versionLink.setAttribute("href", "https://github.com/bui/taiko-web/commit/" + parsed.commit) versionLink.setAttribute("href", "https://github.com/bui/taiko-web/commit/" + parsed.commit)
versionLink.appendChild(document.createTextNode("taiko-web ver." + parsed.version + " (" + parsed.commit_short + ")")) 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.setAttribute("href", "https://github.com/bui/taiko-web")
versionLink.appendChild(document.createTextNode("taiko-web (unknown version)")) versionLink.appendChild(document.createTextNode("taiko-web (unknown version)"))
} finally { } finally {
......
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