diff --git a/.env b/.env index 54220b3..3acf885 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -COMMONERS_AUTH_STRING = 'adsfsafasdfasdfasdfsafsadfdsafasdfsda' +SHARE_SECRET_KEY = '************************************' PORT = 8080 \ No newline at end of file diff --git a/commoners.config.ts b/commoners.config.ts index 24f5cdf..86ca8fa 100644 --- a/commoners.config.ts +++ b/commoners.config.ts @@ -22,7 +22,7 @@ const defineConfig = (o) => o export default defineConfig({ - icon: './src/assets/commoners.png', + // icon: './src/assets/logo.png', electron: { window: { @@ -36,8 +36,8 @@ export default defineConfig({ bluetoothPlugin, serialPlugin, localServicesPlugin(null, (ip, env) => { - const isLocalIP = process.env.LOCAL_IP === ip - const hasAuthString = process.env.COMMONERS_AUTH_STRING === env.COMMONERS_AUTH_STRING + const isLocalIP = ip === 'localhost' + const hasAuthString = process.env.SHARE_SECRET_KEY === env.SHARE_SECRET_KEY return hasAuthString || isLocalIP }), diff --git a/index.html b/index.html index fdd3e87..ada7b97 100644 --- a/index.html +++ b/index.html @@ -20,21 +20,19 @@
-