Fixed error on register, zoom on safari and removed webpack copying env vars to bundle
authorAjay Bura <ajbura@gmail.com>
Thu, 11 Nov 2021 08:39:06 +0000 (14:09 +0530)
committerAjay Bura <ajbura@gmail.com>
Thu, 11 Nov 2021 08:39:06 +0000 (14:09 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
public/index.html
src/app/templates/auth/Auth.jsx
webpack.common.js

index 640d600835757f7af30d4e1d4d79d3c1c035ed62..371c9e3e9b7ecaa8c66dbca423bad8989778f1c1 100644 (file)
@@ -3,7 +3,7 @@
 <head>
     <meta charset="UTF-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0 user-scalable=no">
     <link href="https://api.fontshare.com/css?f[]=supreme@300,301,400,401,500,501,700,701&display=swap" rel="stylesheet">
     <title>Cinny</title>
     <meta name="name"        content="Cinny">
index 658b39fcd1bcc8a52cd0ff270640b44e56684e1a..eae602cf386ad001b15aae3bba60efc6939cebff 100644 (file)
@@ -332,7 +332,7 @@ function Register({ registerInfo, loginFlow, baseUrl }) {
         actions.setSubmitting(false);
       }).catch((err) => {
         const msg = err.message || err.error;
-        if (['M_USER_IN_USE', 'M_INVALID_USERNAME', 'M_EXCLUSIVE'].indexOf(err.errcode) > 0) {
+        if (['M_USER_IN_USE', 'M_INVALID_USERNAME', 'M_EXCLUSIVE'].indexOf(err.errcode) > -1) {
           actions.setErrors({ username: err.errCode === 'M_USER_IN_USE' ? 'Username is already taken' : msg });
         } else if (msg) actions.setErrors({ other: msg });
 
index d4d3513c102d8d31b62b66924d0d77ccb9ccbd19..0dd3e09205c5ca218c30c67253b6cb8d7fec7eee 100644 (file)
@@ -1,6 +1,5 @@
 const HtmlWebpackPlugin = require('html-webpack-plugin');
 const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
-const webpack = require('webpack');
 const CopyPlugin = require("copy-webpack-plugin");
 
 module.exports = {
@@ -66,9 +65,6 @@ module.exports = {
         }
       }
     }),
-    new webpack.DefinePlugin({
-      'process.env': JSON.stringify(process.env),
-    }),
     new CopyPlugin({
       patterns: [
         { from: 'olm.wasm' },