UPDATE getUrl with actual mappings

This commit is contained in:
RecuencoJones
2020-02-12 20:27:48 +01:00
parent a16e524d99
commit 40e5bed491
3 changed files with 9 additions and 9 deletions

View File

@@ -78,8 +78,8 @@ function getUrl(url, process) {
let _url;
if (url[process.platform]) {
_url = url[process.platform];
if (url[PLATFORM_MAPPING[process.platform]]) {
_url = url[PLATFORM_MAPPING[process.platform]];
} else {
_url = url.default;
}
@@ -88,8 +88,8 @@ function getUrl(url, process) {
return _url;
}
if (_url[process.arch]) {
_url = _url[process.arch]
if (_url[ARCH_MAPPING[process.arch]]) {
_url = _url[ARCH_MAPPING[process.arch]]
} else {
_url = _url.default;
}