Tue Jul 23 10:47:18 CST 2019 Source Update...
This commit is contained in:
@@ -284,6 +284,12 @@ WalletFileMap["glass.svg"] = 1;
|
||||
WalletFileMap["dapp-edit.html"] = 1;
|
||||
WalletFileMap["TeraLogo.svg"] = 1;
|
||||
WalletFileMap["mobile-wallet.html"] = "web-wallet.html";
|
||||
var MapRedirect = {};
|
||||
MapRedirect["map.html"] = "teraexplorer.org";
|
||||
MapRedirect["explorer.html"] = "teraexplorer.org";
|
||||
MapRedirect["history.html"] = "teraexplorer.org";
|
||||
MapRedirect["GetSupply"] = "teraexplorer.org";
|
||||
MapRedirect["DappTemplateFile"] = "terawallet.org";
|
||||
global.WebApi2 = {};
|
||||
global.HostingCaller = {};
|
||||
|
||||
@@ -355,25 +361,14 @@ function DoCommandNew(response,Type,Path,Params)
|
||||
Method = "DappTemplateFile";
|
||||
if(HTTPS_HOSTING_DOMAIN === "terafoundation.org")
|
||||
{
|
||||
if(Method === "map.html")
|
||||
var DomenName = MapRedirect[Method];
|
||||
if(DomenName)
|
||||
{
|
||||
response.writeHead(301, {"Location":'http://teraexplorer.org/map.html'});
|
||||
if(Path.substr(0, 1) !== "/")
|
||||
Path = "/" + Path;
|
||||
response.writeHead(301, {"Location":'http://' + DomenName + Path});
|
||||
return response.end();
|
||||
}
|
||||
else
|
||||
if(Method === "explorer.html")
|
||||
{
|
||||
response.writeHead(301, {"Location":'http://teraexplorer.org'});
|
||||
return response.end();
|
||||
}
|
||||
else
|
||||
if(Method === "DappTemplateFile")
|
||||
{
|
||||
if(Path.substr(0, 1) !== "/")
|
||||
Path = "/" + Path;
|
||||
response.writeHead(301, {"Location":'http://terawallet.org' + Path});
|
||||
return response.end();
|
||||
}
|
||||
}
|
||||
switch(Method)
|
||||
{
|
||||
@@ -846,6 +841,8 @@ HostingCaller.GetHistoryTransactions = function (Params)
|
||||
};
|
||||
HostingCaller.GetSupply = function (Params)
|
||||
{
|
||||
if(HTTPS_HOSTING_DOMAIN === "terafoundation.org")
|
||||
return "" + (1000000000 - 420000000);
|
||||
var Data = DApps.Accounts.ReadState(0);
|
||||
if(!Data)
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user