demagicstringify
This commit is contained in:
parent
c9c45ebe4e
commit
d7c4d0ff13
|
@ -104,12 +104,15 @@
|
|||
oldRpc = true;
|
||||
}
|
||||
|
||||
var loco = window.location.href.replace(/\/\.well-known.*/, '');
|
||||
//var loco = 'sso.hellabit.com';
|
||||
var resp;
|
||||
if (/localstorage/i.test(params._scheme)) {
|
||||
if (sub) {
|
||||
subData = localStorage.getItem(sub + '@oauth3.org:issuer');
|
||||
}
|
||||
onSuccess(subData || localStorage.getItem('oauth3.org:issuer')
|
||||
|| window.location.href.replace(/\/\.well-known.*/, ''), subData && true);
|
||||
resp = subData || localStorage.getItem('oauth3.org:issuer') || loco;
|
||||
onSuccess(resp, subData && true);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue