@@ -607,22 +595,6 @@ LoadingScreen.propTypes = {
message: PropTypes.string.isRequired,
};
-function Recaptcha({ message, sitekey, onChange }) {
- return (
-
-
- {message}
-
-
-
- );
-}
-Recaptcha.propTypes = {
- message: PropTypes.string.isRequired,
- sitekey: PropTypes.string.isRequired,
- onChange: PropTypes.func.isRequired,
-};
-
function Terms({ url, onSubmit }) {
return (
diff --git a/src/app/utils/user-agent.ts b/src/app/utils/user-agent.ts
index ca6d03d..7c91b9c 100644
--- a/src/app/utils/user-agent.ts
+++ b/src/app/utils/user-agent.ts
@@ -1,13 +1,3 @@
-import { UAParser } from 'ua-parser-js';
-
-export const ua = () => UAParser(window.navigator.userAgent);
-
-export const isMacOS = () => ua().os.name === 'Mac OS';
-
export const mobileOrTablet = (): boolean => {
- const userAgent = ua();
- const { os, device } = userAgent;
- if (device.type === 'mobile' || device.type === 'tablet') return true;
- if (os.name === 'Android' || os.name === 'iOS') return true;
- return false;
+ return window.navigator && window.navigator.maxTouchPoints > 0;
};
diff --git a/vite.config.js b/vite.config.js
index 8357339..b766c78 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -13,10 +13,6 @@ const copyFiles = {
src: 'node_modules/@matrix-org/olm/olm.wasm',
dest: '',
},
- {
- src: 'node_modules/pdfjs-dist/build/pdf.worker.min.js',
- dest: '',
- },
{
src: '_redirects',
dest: '',
@@ -41,7 +37,7 @@ export default defineConfig({
publicDir: false,
base: "",
server: {
- port: 8080,
+ port: 8000,
host: true,
},
plugins: [
@@ -53,16 +49,16 @@ export default defineConfig({
],
optimizeDeps: {
esbuildOptions: {
- define: {
- global: 'globalThis'
- },
- plugins: [
- // Enable esbuild polyfill plugins
- NodeGlobalsPolyfillPlugin({
- process: false,
- buffer: true,
- }),
- ]
+ define: {
+ global: 'globalThis'
+ },
+ plugins: [
+ // Enable esbuild polyfill plugins
+ NodeGlobalsPolyfillPlugin({
+ process: false,
+ buffer: true,
+ }),
+ ]
}
},
build: {