diff --git a/data/products.json b/data/products.json index 9022b5b..9c5881d 100644 --- a/data/products.json +++ b/data/products.json @@ -1,91 +1,9 @@ { - "products": { - "48": "Windows 8.1 Single Language", - "52": "Windows 8.1", - "55": "Windows 8.1 N", - "61": "Windows 8.1 K", - "62": "Windows 8.1 KN", - "79": "Windows 10 1507", - "80": "Windows 10 1507 KN", - "81": "Windows 10 1507 N", - "82": "Windows 10 1507 Single Language", - "99": "Windows 10 1511", - "104": "Windows 10 1511 KN", - "105": "Windows 10 1511 N", - "106": "Windows 10 1511 Single Language", - "109": "Windows 10 1511 v2", - "114": "Windows 10 1511 v2 KN", - "115": "Windows 10 1511 v2 N", - "116": "Windows 10 1511 v2 Single Language", - "178": "Windows 10 1511 v3", - "182": "Windows 10 1511 v3 KN", - "183": "Windows 10 1511 v3 N", - "184": "Windows 10 1511 v3 Single Language", - "244": "Windows 10 1607", - "245": "Windows 10 1607 N", - "246": "Windows 10 1607 Single Language", - "247": "Windows 10 1607 China Get Genuine", - "361": "Windows 10 1703", - "362": "Windows 10 1703 N", - "363": "Windows 10 1703 Single Language", - "364": "Windows 10 1703 Home China", - "484": "Windows 10 1709", - "485": "Windows 10 1709 Home China", - "488": "Windows 10 Education 1709", - "491": "Windows 10 IoT Core - Build 16299", - "578": "Windows 10 IoT Core - Build 17110", - "590": "Windows 10 IoT Core - Build 17115", - "637": "Windows 10 1803", - "638": "Windows 10 1803 Home China", - "641": "Windows 10 Education 1803", - "644": "Windows 10 IoT Core - Build 16299", - "651": "Windows 10 1803_1", - "652": "Windows 10 1803_1 Home China", - "655": "Windows 10 Education 1803_1", - "692": "Windows 10 IoT Core - Build 17672", - "743": "Windows 10 IoT Core - Build 17686", - "1019": "Windows 10 1809", - "1020": "Windows 10 1809 Home China", - "1021": "Windows 10 Education 1809", - "1024": "Windows 10 IoT Core - Build 17763", - "1056": "Windows 10 Education 1809 October", - "1059": "Windows 10 IoT Core - Build 17763 October", - "1060": "Windows 10 1809 October", - "1061": "Windows 10 1809 Home China October", - "1160": "Windows 10 IoT Core - Build 17763_253", - "1202": "Windows 10 Education 1809 v2 October", - "1203": "Windows 10 1809 v2 October", - "1204": "Windows 10 1809 v2 Home China October", - "1214": "Windows 10 1903", - "1215": "Windows 10 1903 Home China", - "1216": "Windows 10 Education 1903", - "1384": "Windows 10 1903 V2", - "1385": "Windows 10 1903 V2 Home China", - "1386": "Windows 10 Education 1903 V2", - "1429": "Windows 10 1909", - "1430": "Windows 10 1909 Home China", - "1431": "Windows 10 Education 1909", - "1625": "Windows 10 Education 2004", - "1626": "Windows 10 2004", - "1627": "Windows 10 2004 Home China", - "1805": "Windows 10 Education 20H2", - "1806": "Windows 10 20H2 Home China", - "1807": "Windows 10 20H2", - "1882": "Windows 10 20H2 v2", - "1883": "Windows 10 20H2 v2 Home China", - "1884": "Windows 10 Education 20H2 v2", - "2032": "Windows 10 Education 21H1", - "2033": "Windows 10 21H1", - "2034": "Windows 10 21H1 Home China", - "2069": "Windows 11 21H2", - "2070": "Windows 11 Home China 21H2", - "2084": "Windows 10 21H2", - "2085": "Windows 10 21H2 Home China", - "2093": "Windows 11 21H2 v1", - "2094": "Windows 11 21H2 v1 Home China", - "2370": "Windows 11 22H2 v1", - "2371": "Windows 11 22H2 v1 Home China", - "2377": "Windows 10 22H2", - "2378": "Windows 10 22H2 Home China" - } + "48": "Windows 8.1 Single Language", + "52": "Windows 8.1", + "55": "Windows 8.1 N", + "61": "Windows 8.1 K", + "62": "Windows 8.1 KN", + "2370": "Windows 11 22H2 v1", + "2377": "Windows 10 22H2" } diff --git a/js/msdl.js b/js/msdl.js index 90e6702..ffe40d1 100644 --- a/js/msdl.js +++ b/js/msdl.js @@ -194,15 +194,13 @@ function checkHash() { } function preparePage(resp) { - let products = JSON.parse(resp); - if (!products['products']) { + availableProducts = JSON.parse(resp); + if (!availableProducts) { pleaseWait.style.display = 'none'; processingError.style.display = 'block'; return; } - availableProducts = products['products']; - pleaseWait.style.display = 'none'; productsList.style.display = 'block';