Skip to content
Snippets Groups Projects
Unverified Commit 992f8c16 authored by Jed Fox's avatar Jed Fox
Browse files

Don’t suggest http://

parent c007c3f6
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,8 @@ export default function ConfigServer() { ...@@ -28,8 +28,8 @@ export default function ConfigServer() {
switch (error) { switch (error) {
case 'network-failure': case 'network-failure':
return 'Server is not running at this URL'; return 'Server is not running at this URL';
case 'add-http': case 'add-https':
return 'Server is not running at this URL. Did you mean to add "http://"?'; return 'Server is not running at this URL. Make sure you have HTTPS set up properly.';
default: default:
return 'Server does not look like an Actual server. Is it set up correctly?'; return 'Server does not look like an Actual server. Is it set up correctly?';
} }
...@@ -51,9 +51,9 @@ export default function ConfigServer() { ...@@ -51,9 +51,9 @@ export default function ConfigServer() {
) { ) {
let { error } = await send('set-server-url', { url: 'https://' + url }); let { error } = await send('set-server-url', { url: 'https://' + url });
if (error === 'network-failure') { if (error === 'network-failure') {
setError('add-http'); setError('add-https');
if (!url.startsWith('http://')) { if (!url.startsWith('https://')) {
setUrl('http://' + url); setUrl('https://' + url);
} }
} else if (error) { } else if (error) {
setError(error); setError(error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment