fix: fix downloadContract in BaaS
This commit is contained in:
parent
e09d11ea2c
commit
14960c3df2
@ -721,13 +721,21 @@ var cancelUpload = function () {
|
|||||||
}
|
}
|
||||||
var downloadContract = function (projectName) {
|
var downloadContract = function (projectName) {
|
||||||
// console.log(window.location.href);
|
// console.log(window.location.href);
|
||||||
var url;
|
let url;
|
||||||
|
if (global.urlparam) {
|
||||||
|
if (location.href.startsWith("https")) {
|
||||||
|
url = "https://";
|
||||||
|
} else {
|
||||||
|
url = "http://";
|
||||||
|
}
|
||||||
|
url += `${global.urlparam.nodeAddr}/SCIDE/CMManager?`;
|
||||||
|
} else {
|
||||||
if (window.location.href.indexOf("/SCIDE") != -1)
|
if (window.location.href.indexOf("/SCIDE") != -1)
|
||||||
url = window.location.href.replace("/OnlineIDE.html", "/CMManager?");
|
url = window.location.href.replace("/OnlineIDE.html", "/CMManager?");
|
||||||
else
|
else
|
||||||
url = window.location.href.replace("/OnlineIDE.html",
|
url = window.location.href.replace("/OnlineIDE.html",
|
||||||
"/SCIDE/CMManager?");
|
"/SCIDE/CMManager?");
|
||||||
|
}
|
||||||
var arg = "action=downloadContract&projectName="
|
var arg = "action=downloadContract&projectName="
|
||||||
arg += projectName;
|
arg += projectName;
|
||||||
var isPrivate = $("#privateprojecttab").hasClass("active");
|
var isPrivate = $("#privateprojecttab").hasClass("active");
|
||||||
|
Loading…
Reference in New Issue
Block a user