Skip to content

Commit

Permalink
Allow checkTimeZOne to fail if warning is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Jun 3, 2024
1 parent ae8bf2e commit 9383b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ function getArrayURLParameter(name: string, _url?: string): string[] {

function checkTimeZone(offset: number): void {
if (offset !== new Date().getTimezoneOffset()) {
document.querySelector("#time-zone-warning").classList.remove("hidden");
document.querySelector("#time-zone-warning")?.classList?.remove("hidden");
}
}

function checkIframe(): void {
if (isInIframe()) {
document.querySelector("#iframe-warning").classList.remove("hidden");
document.querySelector("#iframe-warning")?.classList?.remove("hidden");
}
}

Expand Down

0 comments on commit 9383b00

Please sign in to comment.