From 83cd3c886c63386814ef7cc2cdef0845ba12d80d Mon Sep 17 00:00:00 2001
From: Ave <112294121+Ave9858@users.noreply.github.com>
Date: Mon, 9 Jan 2023 00:04:01 -0500
Subject: [PATCH] Fix for new Microsoft blocks, update source URL
---
index.html | 2 +-
js/msdl.js | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/index.html b/index.html
index bca079a..9a97a7f 100644
--- a/index.html
+++ b/index.html
@@ -22,7 +22,7 @@
Microsoft Software Download Listing
-
+
Source code on GitHub
diff --git a/js/msdl.js b/js/msdl.js
index 64b3b4a..cc378a0 100644
--- a/js/msdl.js
+++ b/js/msdl.js
@@ -106,8 +106,6 @@ function onDownloadsXhrChange() {
}
function getLanguages(productId) {
- sessionId.value = uuidv4();
-
msContent.style.display = "none";
pleaseWait.style.display = "block";
@@ -147,7 +145,8 @@ function prepareDownload(id) {
productsList.style.display = 'none';
backToProductsDiv.style.display = 'block';
- return getLanguages(id);
+ sessionId.value = uuidv4();
+ fetch('https://vlscppe.microsoft.com/tags?org_id=y6jn8c31&session_id=' + encodeURIComponent(sessionId.value)).then(() => { getLanguages(id) }, () => { getLanguages(id) });
}
function addTableElement(table, value, data) {