From 8242706290668f91578562d70e616a82ed5ce00c Mon Sep 17 00:00:00 2001 From: kunish Date: Thu, 7 Sep 2023 19:36:36 +0800 Subject: [PATCH] fix(setup): fixes #175 --- src/pages/Setup.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Setup.tsx b/src/pages/Setup.tsx index 6f22f86..4f5a5b6 100644 --- a/src/pages/Setup.tsx +++ b/src/pages/Setup.tsx @@ -98,15 +98,15 @@ export default () => { if (query.has('hostname')) { void onSubmit({ - url: `http://${query.get('hostname')}${ - query.get('port') && ':' + query.get('port') + url: `${window.location.protocol}//${query.get('hostname')}${ + query.get('port') ? `:${query.get('port')}` : '' }`, secret: query.get('secret') ?? '', }) } else if (endpointList().length === 0) { - /** + /** we only try auto login when there is nothing in endpoint list - or user who is using default config wont be able to switch to another endpoint ever + or user who is using default config won't be able to switch to another endpoint ever */ void onSubmit({ url: 'http://127.0.0.1:9090',