Ver a proveniência

Merge pull request #3632 from heldersepu/master

fix #3624
bubble
Kyle há 7 anos
committed by GitHub
ascendente
cometimento
f618ed632d
2 ficheiros alterados com 10 adições e 2 eliminações
  1. +5
    -1
      dev-helpers/oauth2-redirect.html
  2. +5
    -1
      dist/oauth2-redirect.html

+ 5
- 1
dev-helpers/oauth2-redirect.html Ver ficheiro

@@ -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 Ver ficheiro

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


Carregando…
Cancelar
Guardar