Have old getBaseHost function removed. It was replaced by getServiceByHost.
This commit is contained in:
parent
2d6f74e692
commit
682cb65feb
9
util.js
9
util.js
@ -35,15 +35,6 @@ exports.getServiceByHost = (host, service="") => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.getBaseHost = (host) => {
|
|
||||||
if (host.endsWith("onion"))
|
|
||||||
return `http://moq7aejnf4xk5k2bkaltli3ftkhusy2mbrd3pj23nrca343ku2mgk4yd.onion`;
|
|
||||||
else if (host.endsWith("i2p"))
|
|
||||||
return `http://t42fkp6zp5dfqywantq3zp427ig3q2onrmfv246tyaztpg4ckb5a.b32.i2p`;
|
|
||||||
else
|
|
||||||
return "https://arav.top";
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.getTimezone = getTimezone;
|
exports.getTimezone = getTimezone;
|
||||||
exports.formats = formats;
|
exports.formats = formats;
|
||||||
exports.datetime = datetime;
|
exports.datetime = datetime;
|
||||||
|
Loading…
Reference in New Issue
Block a user