Skip to content

Commit

Permalink
fix: oops
Browse files Browse the repository at this point in the history
  • Loading branch information
AstreaTSS committed Feb 6, 2024
1 parent c41ddf4 commit 121c370
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const tz = (type) => {
.find((m) => m.type === "timeZoneName");
return tzName.value;
}
const elem = document.getElementById
const elem = (id) => {
return document.getElementById(id);
}

elem("timezone").innerText = "Your time zone is: " + tz("short")
elem("fullname").innerText = "Full name: " + tz("long")
Expand Down

0 comments on commit 121c370

Please sign in to comment.