bug fix: url to cloud-view handling

legacy
Gogs 4 years ago
parent 80bec2114d
commit 3e0e3507e0

@ -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(){

Loading…
Cancel
Save