From 0c278618b9e8802398580f7a30251d11d446922f Mon Sep 17 00:00:00 2001 From: BelKed <66956532+BelKed@users.noreply.github.com> Date: Mon, 20 May 2024 14:24:48 +0200 Subject: [PATCH] fix: add a brave-specific check (#126) --- src/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.js b/src/client.js index 4abe76b..3a1fd6d 100644 --- a/src/client.js +++ b/src/client.js @@ -23,6 +23,9 @@ function logHttpError(error) { } function getBrowserName() { + if (navigator.brave?.isBrave()) + return "brave"; + // Get browser name from UAParser (somewhat expensive operation) var agent_parsed = ua_parser(navigator.userAgent); var browserName = agent_parsed.browser.name.toLowerCase();