From d7c4d0ff1337bc3c16fe44a7606c25f31c690854 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 25 Nov 2017 08:58:58 +0000 Subject: [PATCH] demagicstringify --- well-known/oauth3/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/well-known/oauth3/index.html b/well-known/oauth3/index.html index 811ba0e..d3540b4 100644 --- a/well-known/oauth3/index.html +++ b/well-known/oauth3/index.html @@ -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; }