fix
This commit is contained in:
@@ -138,7 +138,7 @@ function getControlWsUrl(host) {
|
||||
function initWSocket() {
|
||||
console.log("[nodecenterManagement.js] initWSocket : ");
|
||||
let host = document.location.host;
|
||||
let url = getControlWsUrl(host);
|
||||
let url = getControlWsUrl(global.urlparam && global.urlparam.nodeAddr ? global.urlparam.nodeAddr : host);
|
||||
// console.log("connect ws:" + url);
|
||||
global.wssocket = createWssocket(url, function () {
|
||||
getSession();
|
||||
@@ -478,7 +478,7 @@ function init() {
|
||||
}
|
||||
|
||||
function getRequestParameters() {
|
||||
if (location.href.indexOf("/BaaSOnlineIDE.html") !== -1) {
|
||||
if (isBaaS) {
|
||||
let params = location.href.replace(/[^#]*(#(\/)?|\?)/, '')
|
||||
let url = location.href.replace(params, '')
|
||||
while (!params) {
|
||||
|
||||
Reference in New Issue
Block a user