diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-02-21 13:51:41 -0300 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-02-22 15:22:55 -0300 |
commit | f7bd078bcce2d6cad419fceb55ab71415cda4d33 (patch) | |
tree | 918de20bb17925912d0c9ed8bb053d7aa8a3826f /web-ui/src/interstitial | |
parent | 92c6a9dbc39318df48b4b3d5fae1a3888f201343 (diff) |
[#907] Display error message for mobile version
with @anikarni
Diffstat (limited to 'web-ui/src/interstitial')
-rw-r--r-- | web-ui/src/interstitial/interstitial.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web-ui/src/interstitial/interstitial.js b/web-ui/src/interstitial/interstitial.js index 78a17190..c9a29c21 100644 --- a/web-ui/src/interstitial/interstitial.js +++ b/web-ui/src/interstitial/interstitial.js @@ -44,8 +44,10 @@ $(function () { method: 'GET', url: '/status' }).success(function (data) { - if (data.status === 'completed' || data.status === 'error') { + if (data.status === 'completed') { window.location="/"; + } else if (data.status === 'error') { + window.location="/login?error"; } }); }, 2000); |