bug fix with prefix url

master
Steve L. Nyemba 5 years ago
parent 176b4af9ae
commit 8c7f0619b8

@ -13,7 +13,7 @@ jx.cloudview = { popup:null,cache: {},oauth:{},url:'https://the-phi.com/cloud-vi
jx.cloudview.init = function(url,redir_url){//host,protocol){
// jx.cloudview.host = host
// jx.cloudview.protocol = protocol
jx.cloudview.url = url.trim()
jx.cloudview.url = url.trim().replace(/\/$/,'')
if(redir_url != null){
jx.cloudview.redirect_url = redir_url
}
@ -21,7 +21,7 @@ jx.cloudview.init = function(url,redir_url){//host,protocol){
jx.cloudview.oauth.init = function (id, key,callback,err) {
// var url = ":protocol://:host/cloud-view/" +id+"/get"
// url = url.replace(/:protocol/,jx.cloudview.protocol).replace(/:host/,jx.cloudview.host)
var url = jx.cloudview.url
var url = jx.cloudview.url+'/get'
var httpclient = HttpClient.instance()
httpclient.setHeader("platform",navigator.appName)

Loading…
Cancel
Save