Merge branch 'v1.2-next' of git.oauth3.org:OAuth3/oauth3.js into v1.2-next
This commit is contained in:
commit
0aa85baf6d
|
@ -104,12 +104,15 @@
|
||||||
oldRpc = true;
|
oldRpc = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var loco = window.location.href.replace(/\/\.well-known.*/, '');
|
||||||
|
//var loco = 'sso.hellabit.com';
|
||||||
|
var resp;
|
||||||
if (/localstorage/i.test(params._scheme)) {
|
if (/localstorage/i.test(params._scheme)) {
|
||||||
if (sub) {
|
if (sub) {
|
||||||
subData = localStorage.getItem(sub + '@oauth3.org:issuer');
|
subData = localStorage.getItem(sub + '@oauth3.org:issuer');
|
||||||
}
|
}
|
||||||
onSuccess(subData || localStorage.getItem('oauth3.org:issuer')
|
resp = subData || localStorage.getItem('oauth3.org:issuer') || loco;
|
||||||
|| window.location.href.replace(/\/\.well-known.*/, ''), subData && true);
|
onSuccess(resp, subData && true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue