()
| 76 | * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. |
| 77 | */ |
| 78 | export 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. |
searching dependent graphs…