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() {
switch (error) {
case 'network-failure':
return 'Server is not running at this URL';
case 'add-http':
return 'Server is not running at this URL. Did you mean to add "http://"?';
case 'add-https':
return 'Server is not running at this URL. Make sure you have HTTPS set up properly.';
default:
return 'Server does not look like an Actual server. Is it set up correctly?';
}
......@@ -51,9 +51,9 @@ export default function ConfigServer() {
) {
let { error } = await send('set-server-url', { url: 'https://' + url });
if (error === 'network-failure') {
setError('add-http');
if (!url.startsWith('http://')) {
setUrl('http://' + url);
setError('add-https');
if (!url.startsWith('https://')) {
setUrl('https://' + url);
}
} else if (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