mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
window.navigator has already been used
This commit is contained in:
parent
cf97e8644d
commit
06687642b5
|
@ -1,7 +1,7 @@
|
|||
// Based on https://stackoverflow.com/a/38241481/724176
|
||||
function getOS() {
|
||||
const userAgent = window.navigator.userAgent,
|
||||
platform = window.navigator?.userAgentData?.platform || window.navigator.platform,
|
||||
platform = window.navigator.userAgentData?.platform || window.navigator.platform,
|
||||
macosPlatforms = ["macOS", "Macintosh", "MacIntel", "MacPPC", "Mac68K"],
|
||||
windowsPlatforms = ["Win32", "Win64", "Windows", "WinCE"];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user