From 3e0e3507e0197282faf52900eccd36134c653b54 Mon Sep 17 00:00:00 2001 From: Gogs Date: Sat, 3 Oct 2020 00:40:58 +0000 Subject: [PATCH] bug fix: url to cloud-view handling --- src/api/templates/plans.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/templates/plans.html b/src/api/templates/plans.html index 0b2cfeb..293f2e1 100755 --- a/src/api/templates/plans.html +++ b/src/api/templates/plans.html @@ -88,7 +88,7 @@ var id = ( $(this).attr('data-value')) var plan_id = ( $(this).attr('plan-id')) var protocol = window.location.href.match(/^(https|http)/)[0] - var host = window.location.href.match(/^.+\/\/([a-z,-,.]+)\/.+$/)[1] + var host = window.location.href.match(/^.+\/\/([a-z,\-,.]+)\/.+$/)[1] var key = ([protocol,'://',host,'/cloud-view/oauth']).join('') //jx.cloudview.init(host,protocol) $('.auth').slideUp(function(){