From 3e32dbdb57fcc8f78cc3806801f4b807ca7b6a86 Mon Sep 17 00:00:00 2001 From: Bui Date: Wed, 10 Oct 2018 21:07:27 +0100 Subject: [PATCH] change exception name --- public/src/js/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/loader.js b/public/src/js/loader.js index a50d510..68362e5 100644 --- a/public/src/js/loader.js +++ b/public/src/js/loader.js @@ -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 {