mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
Select HTTPS if remembered clone protocol is SSH but SSH is disabled now
This commit is contained in:
parent
d568019306
commit
84749736a8
|
@ -1042,7 +1042,9 @@ $(window).load(function () {
|
|||
if ($('#repo-clone-url').length > 0) {
|
||||
switch (localStorage.getItem('repo-clone-protocol')) {
|
||||
case 'ssh':
|
||||
$('#repo-clone-ssh').click();
|
||||
if ($('#repo-clone-ssh').click().length === 0) {
|
||||
$('#repo-clone-https').click();
|
||||
};
|
||||
break;
|
||||
default:
|
||||
$('#repo-clone-https').click();
|
||||
|
|
Loading…
Reference in a new issue