|
|
@ -1042,7 +1042,9 @@ $(window).load(function () { |
|
|
|
if ($('#repo-clone-url').length > 0) { |
|
|
|
if ($('#repo-clone-url').length > 0) { |
|
|
|
switch (localStorage.getItem('repo-clone-protocol')) { |
|
|
|
switch (localStorage.getItem('repo-clone-protocol')) { |
|
|
|
case 'ssh': |
|
|
|
case 'ssh': |
|
|
|
$('#repo-clone-ssh').click(); |
|
|
|
if ($('#repo-clone-ssh').click().length === 0) { |
|
|
|
|
|
|
|
$('#repo-clone-https').click(); |
|
|
|
|
|
|
|
}; |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
$('#repo-clone-https').click(); |
|
|
|
$('#repo-clone-https').click(); |
|
|
|