Parcourir la source

Merge pull request #3632 from heldersepu/master

fix #3624
bubble
Kyle il y a 7 ans
committed by GitHub
Parent
révision
f618ed632d
2 fichiers modifiés avec 10 ajouts et 2 suppressions
  1. +5
    -1
      dev-helpers/oauth2-redirect.html
  2. +5
    -1
      dist/oauth2-redirect.html

+ 5
- 1
dev-helpers/oauth2-redirect.html Voir le fichier

@@ -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 Voir le fichier

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


Chargement…
Annuler
Enregistrer