mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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
|
// Based on https://stackoverflow.com/a/38241481/724176
|
||||||
function getOS() {
|
function getOS() {
|
||||||
const userAgent = window.navigator.userAgent,
|
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"],
|
macosPlatforms = ["macOS", "Macintosh", "MacIntel", "MacPPC", "Mac68K"],
|
||||||
windowsPlatforms = ["Win32", "Win64", "Windows", "WinCE"];
|
windowsPlatforms = ["Win32", "Win64", "Windows", "WinCE"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user