Merge pull request #2534 from joelittlejohn/test-fragment

On complete, ignore fragments that don't contain useful information
This commit is contained in:
Tony Tam
2016-11-28 09:40:22 -08:00
committed by GitHub

View File

@@ -1,6 +1,6 @@
<script> <script>
var qp = null; var qp = null;
if(window.location.hash && window.location.hash !== "#_=_") { if(/code|token|error/.test(window.location.hash)) {
qp = location.hash.substring(1); qp = location.hash.substring(1);
} }
else { else {