Skip to content

Commit

Permalink
#32 Fixed whitespace and query param
Browse files Browse the repository at this point in the history
  • Loading branch information
gargravarr committed Dec 15, 2016
1 parent 1e5958e commit ac0a40c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zign/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
(function extractFragmentQueryString() {{
function displayError(message) {{
var errorElement = document.getElementById("error");
errorElement.textContent = message || "Unknown error";
errorElement.textContent = message || "Unknown error";
}}
function parseQueryString(qs) {{
Expand All @@ -69,7 +69,7 @@
var query = window.location.hash.substring(1);
var params = parseQueryString(query);
if (params.access_token) {{
window.location.href = "http://localhost:{port}/?" + fragment;
window.location.href = "http://localhost:{port}/?" + query;
}} else {{
displayError("Error: No access_token in URL.")
}}
Expand Down

0 comments on commit ac0a40c

Please sign in to comment.