Przeglądaj źródła

Merge pull request #3632 from heldersepu/master

fix #3624
bubble
Kyle 7 lat temu
committed by GitHub
rodzic
commit
f618ed632d
2 zmienionych plików z 10 dodań i 2 usunięć
  1. +5
    -1
      dev-helpers/oauth2-redirect.html
  2. +5
    -1
      dist/oauth2-redirect.html

+ 5
- 1
dev-helpers/oauth2-redirect.html Wyświetl plik

@@ -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 Wyświetl plik

@@ -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('=', '":"') + '"';})


Ładowanie…
Anuluj
Zapisz