Fix hardcoded url in form (#407)

Co-authored-by: cromatikap <cromatikap@users.noreply.github.com>
This commit is contained in:
cromatikap 2026-01-19 23:46:07 +00:00 • committed by GitHub
parent 6425427079
commit 97e9fad679
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ async function app(req: Request): Promise<Response> {
<div> <div>
<h2>You can use this form: </h2> <h2>You can use this form: </h2>
<p>Enter your username and click get trophies</p> <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> <label for="username">GitHub Username</label>
<input type="text" name="username" id="username" placeholder="Ex. gabriel-logan" required> <input type="text" name="username" id="username" placeholder="Ex. gabriel-logan" required>
<label for="theme">Theme (Optional)</label> <label for="theme">Theme (Optional)</label>
@ -73,7 +73,6 @@ async function app(req: Request): Promise<Response> {
</form> </form>
</div> </div>
<script> <script>
const base = "https://github-profile-trophy.vercel.app/";
const button = document.querySelector("button"); const button = document.querySelector("button");
const input = document.querySelector("input"); const input = document.querySelector("input");
const temporarySpan = document.querySelector("#temporary-span"); const temporarySpan = document.querySelector("#temporary-span");