From e36072678643076a1de9a0a9bbcaecdbdbd108a8 Mon Sep 17 00:00:00 2001 From: shmyga Date: Thu, 10 May 2018 23:11:03 +0300 Subject: [PATCH] [adnroid] download link fix --- haxetool/android.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haxetool/android.js b/haxetool/android.js index a80a53e..536aa75 100644 --- a/haxetool/android.js +++ b/haxetool/android.js @@ -23,7 +23,7 @@ class Android extends Sdk { get link() { const system = Sdk.System.isWindows ? 'windows' : Sdk.System.isLinux ? 'linux' : null; if (!system) throw 'Unsupported system'; - if (this.version.indexOf('.') === -1) { + if (this.version.indexOf('.') > -1) { return `https://dl.google.com/android/repository/tools_r${this.version}-${system}.zip`; } else { return `https://dl.google.com/android/repository/sdk-tools-${system}-${this.version}.zip`;