File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ private function changeLocation(event:LocationChangeEvent):void
123
123
{
124
124
var location:String = webView.location;
125
125
126
- if(location.indexOf("/__/auth/handler?code=") != -1 || location.indexOf("/__/auth/handler?state=") != -1 || location.indexOf("/__/auth/handler#state=") != -1){
126
+ if(location.indexOf("/__/auth/handler?code=") != -1 || location.indexOf("/__/auth/handler?state=") != -1 || location.indexOf("/__/auth/handler#state=") != -1 && location.indexOf("error") == -1 ){
127
127
128
128
//We are looking for a code parameter in the URL, once we have it we dispose the webview and prepare the last URLRequest
129
129
webView.removeEventListener(LocationChangeEvent.LOCATION_CHANGE, changeLocation);
Original file line number Diff line number Diff line change 52
52
{
53
53
var location:String = webView.location;
54
54
55
- if(location.indexOf("/__/auth/handler?code=") != -1 || location.indexOf("/__/auth/handler?state=") != -1 || location.indexOf("/__/auth/handler#state=") != -1){
55
+ if(location.indexOf("/__/auth/handler?code=") != -1 || location.indexOf("/__/auth/handler?state=") != -1 || location.indexOf("/__/auth/handler#state=") != -1 && location.indexOf("error") == -1 ){
56
56
57
57
//We are looking for a code parameter in the URL, once we have it we dispose the webview and prepare the last URLRequest
58
58
webView.removeEventListener(LocationChangeEvent.LOCATION_CHANGE, changeLocation);
You can’t perform that action at this time.
0 commit comments