Spaces:
Running
Running
edition
Browse files- index.html +5 -2
index.html
CHANGED
@@ -147,11 +147,14 @@
|
|
147 |
success: function (data) {
|
148 |
if (data.length > 0) {
|
149 |
var latestRelease = data[0];
|
|
|
150 |
// Get the latest release
|
151 |
var releaseAssets = latestRelease.assets;
|
|
|
|
|
152 |
// The file is in the link array, and assuming we want to download the first link (.exe), we look for his URL
|
153 |
-
var downloadUrl = releaseAssets.length > 0 ? releaseAssets.links[0].url : '';
|
154 |
-
|
155 |
// Update the download button href attribute
|
156 |
$('#downloadButton').attr('onclick', 'window.location.href="' + downloadUrl + '"');
|
157 |
}
|
|
|
147 |
success: function (data) {
|
148 |
if (data.length > 0) {
|
149 |
var latestRelease = data[0];
|
150 |
+
console.log("latest release",latestRelease);
|
151 |
// Get the latest release
|
152 |
var releaseAssets = latestRelease.assets;
|
153 |
+
console.log("releaseAssets",releaseAssets);
|
154 |
+
console.log("releaseAssets.length",releaseAssets.length);
|
155 |
// The file is in the link array, and assuming we want to download the first link (.exe), we look for his URL
|
156 |
+
var downloadUrl = releaseAssets.links.length > 0 ? releaseAssets.links[0].url : '';
|
157 |
+
console.log("downloadUrl",downloadUrl);
|
158 |
// Update the download button href attribute
|
159 |
$('#downloadButton').attr('onclick', 'window.location.href="' + downloadUrl + '"');
|
160 |
}
|