MCPcopy
hub / github.com/fingerprintjs/fingerprintjs / isWebKit

Function isWebKit

src/utils/browser.ts:78–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.
77 */
78export function isWebKit(): boolean {
79 // Based on research in August 2024
80 const w = window
81 const n = navigator
82
83 return (
84 countTruthy([
85 'ApplePayError' in w,
86 'CSSPrimitiveValue' in w,
87 'Counter' in w,
88 n.vendor.indexOf('Apple') === 0,
89 'RGBColor' in w,
90 'WebKitMediaKeys' in w,
91 ]) >= 4
92 )
93}
94
95/**
96 * Checks whether this WebKit browser is a desktop browser.

Callers 14

getOpenConfidenceScoreFunction · 0.90
getPlatformFunction · 0.90
getScreenResolutionFunction · 0.90
vendor.test.tsFile · 0.90
fonts.test.tsFile · 0.90
getScreenFrameFunction · 0.90
isApplicableFunction · 0.90
withNaturalFontsFunction · 0.90

Calls 1

countTruthyFunction · 0.90

Tested by 1

hasBaseLatencySupportFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…