Permalink
Browse files

fix for android mobile devices

  • Loading branch information...
1 parent 977f705 commit beb65aeccde52d18c58664bb2f4312f22c7ac41d @daleharvey daleharvey committed Nov 2, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 _attachments/focus.js
View
@@ -573,7 +573,8 @@ var Focus = (function () {
$.couch.login({
name : data.rows[1].doc.name,
password : mobilePass,
- success : function () { loadUser(data.rows[1].doc.name); }
+ success : function () {
+ }
});
} else {
router.init();
@@ -647,7 +648,7 @@ var Focus = (function () {
function isMobile() {
return navigator.userAgent.toLowerCase()
- .match(/(andoid|iphone|ipod|ipad)/) !== null;
+ .match(/(android|iphone|ipod|ipad)/) !== null;
};
// I dont like these global events, they are bound to the page permanently

0 comments on commit beb65ae

Please sign in to comment.