Skip to content

Commit

Permalink
fix for android mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
daleharvey committed Nov 2, 2010
1 parent 977f705 commit beb65ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _attachments/focus.js
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit beb65ae

Please sign in to comment.