Skip to content

Commit

Permalink
Fleshed out isiOS based on the browser user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Sep 15, 2011
1 parent aa5b89b commit 7303c0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/hydra.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
}

function openXHR(url, options, xhr) {
var isiOS = true; // TODO: differentiate, we need this function because iOS can only handle basic auth credentials in the URL itself

// differentiate, we need this function because iOS can only handle basic auth credentials in the URL itself
var isiOS = (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPad/i) != null);

var async = (options && options.async ? options.async : true);
var username = (options && options.username ? options.username : null );
var password = (options && options.password ? options.password : null );
Expand Down

0 comments on commit 7303c0e

Please sign in to comment.