diff --git a/package.json b/package.json index 3bfb8391e8..5cb5477f12 100644 --- a/package.json +++ b/package.json @@ -91,8 +91,8 @@ "@types/react-modal": "^3.13.1", "@types/uuid": "^9.0.0", "@types/webextension-polyfill": "^0.9.2", - "@typescript-eslint/eslint-plugin": "^5.42.0", - "@typescript-eslint/parser": "^5.42.0", + "@typescript-eslint/eslint-plugin": "^5.45.1", + "@typescript-eslint/parser": "^5.45.1", "autoprefixer": "^10.4.13", "buffer": "^6.0.3", "clean-webpack-plugin": "^4.0.0", @@ -102,7 +102,7 @@ "css-loader": "^6.7.2", "css-minimizer-webpack-plugin": "^4.2.2", "del-cli": "^5.0.0", - "eslint": "^8.27.0", + "eslint": "^8.29.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-react": "^7.31.11", @@ -118,8 +118,8 @@ "mini-css-extract-plugin": "^2.7.0", "msw": "^0.49.0", "postcss": "^8.4.19", - "postcss-cli": "^10.0.0", - "postcss-loader": "^7.0.1", + "postcss-cli": "^10.1.0", + "postcss-loader": "^7.0.2", "pptr-testing-library": "^0.7.0", "prettier": "^2.8.0", "process": "^0.11.10", diff --git a/src/app/components/CompanionDownloadInfo.tsx b/src/app/components/CompanionDownloadInfo.tsx index dcd54c8878..eb027bf723 100644 --- a/src/app/components/CompanionDownloadInfo.tsx +++ b/src/app/components/CompanionDownloadInfo.tsx @@ -13,10 +13,11 @@ function CompanionDownloadInfo({ hasTorCallback }: Props) { }); function getOS() { - if (navigator.appVersion.indexOf("Win") != -1) return "Windows"; - if (navigator.appVersion.indexOf("Mac") != -1) return "MacOS"; - if (navigator.appVersion.indexOf("X11") != -1) return "UNIX"; - if (navigator.appVersion.indexOf("Linux") != -1) return "Linux"; + const userAgent = navigator.userAgent; + if (userAgent.indexOf("Win") !== -1) return "Windows"; + if (userAgent.indexOf("Mac") !== -1) return "MacOS"; + if (userAgent.indexOf("X11") !== -1) return "UNIX"; + if (userAgent.indexOf("Linux") !== -1) return "Linux"; } // TODO: check if the companion app is already installed diff --git a/src/app/components/SatButtons/index.tsx b/src/app/components/SatButtons/index.tsx index d7eab832dd..4805244ee4 100644 --- a/src/app/components/SatButtons/index.tsx +++ b/src/app/components/SatButtons/index.tsx @@ -12,29 +12,29 @@ function SatButtons({ onClick, disabled }: Props) {