From 151a01ef56bef27b574c98790b65c0308ea8eb91 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 18 Dec 2017 01:43:02 -0700 Subject: [PATCH] Don't crash app when rate limiting is triggered --- www/views/mobilecode.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/views/mobilecode.html b/www/views/mobilecode.html index 1af9943..d1ac2cc 100644 --- a/www/views/mobilecode.html +++ b/www/views/mobilecode.html @@ -28,8 +28,7 @@ navigator.notification.alert(data.msg, null, "Error", 'Dismiss'); } }, "json").fail(function () { - navigator.notification.alert("Could not connect to the server. Try again later.", null, "Error", 'Dismiss'); - openscreen("homeloaderror"); + navigator.notification.alert("Unable to request code. Try again in a few seconds.", null, "Error", 'Dismiss'); }); }