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