aboutsummaryrefslogtreecommitdiffstats
path: root/docs/oauth.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/oauth.html')
-rw-r--r--docs/oauth.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/oauth.html b/docs/oauth.html
index 7ef4d99..3490bbb 100644
--- a/docs/oauth.html
+++ b/docs/oauth.html
@@ -16,15 +16,15 @@
</style>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
- var locationsHash = location.hash
- .replace(/^#\?/, '')
+ var locationsSearch = location.search
+ .replace(/^\?/, '')
.split('&')
.reduce((obj, query) => {
split = query.split('=');
obj[split[0]] = split[1];
return obj}, {}
)
- var code = locationsHash['code'];
+ var code = locationsSearch['code'];
if (code) {
document.getElementById('with-code').style.display = 'block';
} else {