Skip to content

Commit b03fb13

Browse files
committed
add https:// protocol if no protocol specified
1 parent f051fe2 commit b03fb13

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/modebar/cloud_confirm.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) {
9292
return;
9393
}
9494

95+
if (!url.startsWith('http://') && !url.startsWith('https://')) {
96+
url = 'https://' + url;
97+
}
98+
9599
try {
96100
new URL(url);
97101
} catch(e) {

0 commit comments

Comments
 (0)