Redirect to Firefox download when using Chrome

This commit is contained in:
ReiMerc 2023-02-08 14:17:34 +01:00
parent dd79fc826d
commit 489e16eea3

View File

@ -164,6 +164,10 @@ function setupSearchBar(zipCodeElement: HTMLParagraphElement) {
} }
function main() { function main() {
if (navigator.userAgent.match("Chrome")) {
location.href = "https://mozilla.org/firefox";
}
const [mousePositionElement, coordsElement, zipCodeElement] = [ const [mousePositionElement, coordsElement, zipCodeElement] = [
"#mouse-position", "#mouse-position",
"#coords", "#coords",