Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
shhnjk authored Mar 11, 2024
1 parent 37d4a08 commit 63e267b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<script>
if (!!location.search) {
alert(decodeURIComponent((new URLSearchParams(location.search)).get("data")));
try {
alert(decodeURIComponent((new URLSearchParams(location.search)).get("data")));
} catch(e) {
alert((new URLSearchParams(location.search)).get("data"));
}
} else {
alert('hello')
}
Expand Down

0 comments on commit 63e267b

Please sign in to comment.