-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(confirmation.html): Merge error and confirmation pages
- Loading branch information
1 parent
0f57130
commit ba97b8e
Showing
2 changed files
with
17 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
<html> | ||
<head> | ||
<title>Request Result</title> | ||
</head> | ||
<body> | ||
<p>Your request is confirmed.</p> | ||
<p id="contents"> | ||
Your request is confirmed. | ||
<noscript>If an error occurred, a message is embedded in the URL for this page, but could not be parsed.</noscript> | ||
</p> | ||
</body> | ||
<script> | ||
var search = window.location.search.split("?")[1]; | ||
if (search) { | ||
var urlParams = search.split(";"); | ||
var errorParam = urlParams.find(p => p.startsWith("error=")); | ||
if (errorParam) { | ||
document.getElementById("contents").innerHTML = `An error occurred: ${decodeURIComponent(errorParam.split("=")[1])}`; | ||
} | ||
} | ||
</script> | ||
</html> |
This file was deleted.
Oops, something went wrong.