UNPKG
@allurereport/web-classic
Version:
latest (3.8.2)
3.8.2
3.8.1
3.8.0
3.7.0
3.6.2
3.6.1
3.6.0
3.5.0
3.4.1
3.4.0
3.3.1
3.3.0
3.2.0
3.1.0
3.0.1
3.0.0
3.0.0-beta.27
3.0.0-beta.26
3.0.0-beta.25
3.0.0-beta.24
3.0.0-beta.23
3.0.0-beta.22
3.0.0-beta.21
3.0.0-beta.20
3.0.0-beta.19
3.0.0-beta.18
3.0.0-beta.17
3.0.0-beta.16
3.0.0-beta.15
3.0.0-beta.14
3.0.0-beta.13
3.0.0-beta.12
3.0.0-beta.11
3.0.0-beta.10
3.0.0-beta.9
3.0.0-beta.8
3.0.0-beta.7
3.0.0-beta.6
3.0.0-beta.5
3.0.0-beta.4
3.0.0-beta.3
The static files for Allure Classic Report
@allurereport/web-classic
/
src
/
utils
/
isMac.ts
9 lines
(6 loc)
•
260 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
export
const
testPlatform
= (
re
:
RegExp
) => {
// @ts-ignore
const
platform
:
string
=
window
?.
navigator
?.
userAgentData
?.
platform
??
window
?.
navigator
?.
platform
;
return
platform ? re.
test
(platform) :
false
; };
export
const
isMac =
testPlatform
(
/^Mac/i
);