mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(nomad): sync frontend with EE [EE-3353] (#7758)
This commit is contained in:
parent
78dcba614d
commit
881e99df53
68 changed files with 1799 additions and 17 deletions
11
app/react/constants.ts
Normal file
11
app/react/constants.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
export const BROWSER_OS_PLATFORM = getOs();
|
||||
|
||||
function getOs() {
|
||||
const { userAgent } = navigator;
|
||||
|
||||
if (userAgent.includes('Windows')) {
|
||||
return 'win';
|
||||
}
|
||||
|
||||
return userAgent.includes('Mac') ? 'mac' : 'lin';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue