Sfoglia il codice sorgente

Merge pull request #3632 from heldersepu/master

fix #3624
bubble
Kyle 7 anni fa
committed by GitHub
parent
commit
f618ed632d
2 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. +5
    -1
      dev-helpers/oauth2-redirect.html
  2. +5
    -1
      dist/oauth2-redirect.html

+ 5
- 1
dev-helpers/oauth2-redirect.html Vedi File

@@ -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 Vedi File

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


Caricamento…
Annulla
Salva