From 489e16eea3b2cf1bf5af3de32bfe17405931a99f Mon Sep 17 00:00:00 2001 From: ReiMerc Date: Wed, 8 Feb 2023 14:17:34 +0100 Subject: [PATCH] Redirect to Firefox download when using Chrome --- frontend/src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 479cce7..43070ff 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -164,6 +164,10 @@ function setupSearchBar(zipCodeElement: HTMLParagraphElement) { } function main() { + if (navigator.userAgent.match("Chrome")) { + location.href = "https://mozilla.org/firefox"; + } + const [mousePositionElement, coordsElement, zipCodeElement] = [ "#mouse-position", "#coords",