mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix hardcoded url in form (#407)
Co-authored-by: cromatikap <cromatikap@users.noreply.github.com>
This commit is contained in:
parent
6425427079
commit
97e9fad679
1 changed files with 1 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ async function app(req: Request): Promise<Response> {
|
|||
<div>
|
||||
<h2>You can use this form: </h2>
|
||||
<p>Enter your username and click get trophies</p>
|
||||
<form action="https://github-profile-trophy.vercel.app/" method="get">
|
||||
<form action="${base}" method="get">
|
||||
<label for="username">GitHub Username</label>
|
||||
<input type="text" name="username" id="username" placeholder="Ex. gabriel-logan" required>
|
||||
<label for="theme">Theme (Optional)</label>
|
||||
|
|
@ -73,7 +73,6 @@ async function app(req: Request): Promise<Response> {
|
|||
</form>
|
||||
</div>
|
||||
<script>
|
||||
const base = "https://github-profile-trophy.vercel.app/";
|
||||
const button = document.querySelector("button");
|
||||
const input = document.querySelector("input");
|
||||
const temporarySpan = document.querySelector("#temporary-span");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue