Skip to content

Commit

Permalink
Re-release 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSwitch committed Jan 15, 2014
1 parent bf3a5b2 commit 18bb7e6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
9 changes: 7 additions & 2 deletions dist/hello.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,11 @@ hello.utils.extend( hello, {
// OAuth redirect, fixes URI fragments from being lost in Safari
// (URI Fragments within 302 Location URI are lost over HTTPS)
// Loading the redirect.html before triggering the OAuth Flow seems to fix it.
p.qs.redirect_uri + "#oauth_redirect=" + encodeURIComponent(url),
//
// FIREFOX, decodes URL fragments when calling location.hash.
// - This is bad if the value contains break points which are escaped
// - Hence the url must be encoded twice as it contains breakpoints.
p.qs.redirect_uri + "#oauth_redirect=" + encodeURIComponent(encodeURIComponent(url)),
'Authentication',
"resizeable=true,height=" + windowHeight + ",width=" + windowWidth + ",left="+((window.innerWidth-windowWidth)/2)+",top="+((window.innerHeight-windowHeight)/2)
);
Expand Down Expand Up @@ -1268,6 +1272,7 @@ hello.unsubscribe = hello.off;
//
// FACEBOOK is returning auth errors within as a query_string... thats a stickler for consistency.
// SoundCloud is the state in the querystring and the token in the hashtag, so we'll mix the two together

var p = utils.merge(utils.param(location.search||''), utils.param(location.hash||''));


Expand Down Expand Up @@ -1329,7 +1334,7 @@ hello.unsubscribe = hello.off;
// (URI Fragments within 302 Location URI are lost over HTTPS)
// Loading the redirect.html before triggering the OAuth Flow seems to fix it.
else if("oauth_redirect" in p){
window.location = p.oauth_redirect;
window.location = decodeURIComponent(p.oauth_redirect);
return;
}

Expand Down
Loading

0 comments on commit 18bb7e6

Please sign in to comment.