Skip to content

detectBrowser

It detects used browser or return "No detection".

Types

DetectBrowserResult

Return value of detectBrowser. Detects the current browser based on navigator.userAgent and known engine fingerprints.

ts
export type DetectBrowserResult = "chrome" | "firefox" | "safari" | "opera" | "edge" | "No detection"

Released under the MIT License.