Procházet zdrojové kódy

Merge pull request #3632 from heldersepu/master

fix #3624
bubble
Kyle před 7 roky
committed by GitHub
rodič
revize
f618ed632d
2 změnil soubory, kde provedl 10 přidání a 2 odebrání
  1. +5
    -1
      dev-helpers/oauth2-redirect.html
  2. +5
    -1
      dist/oauth2-redirect.html

+ 5
- 1
dev-helpers/oauth2-redirect.html Zobrazit soubor

@@ -11,7 +11,11 @@
var redirectUrl = oauth2.redirectUrl;
var isValid, qp, arr;

qp = (window.location.hash || location.search).substring(1);
if (/code|token|error/.test(window.location.hash)) {
qp = window.location.hash.substring(1);
} else {
qp = location.search.substring(1);
}

arr = qp.split("&")
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})


+ 5
- 1
dist/oauth2-redirect.html Zobrazit soubor

@@ -11,7 +11,11 @@
var redirectUrl = oauth2.redirectUrl;
var isValid, qp, arr;

qp = (window.location.hash || location.search).substring(1);
if (/code|token|error/.test(window.location.hash)) {
qp = window.location.hash.substring(1);
} else {
qp = location.search.substring(1);
}

arr = qp.split("&")
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})


Načítá se…
Zrušit
Uložit