summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/js/gogs.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index df48c7dbe9..cee2a6a845 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -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();