Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 737340d

Browse files
authored
Add script to fetch JSON data in index.html
1 parent 44eb2bd commit 737340d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

website/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@
77
</head>
88
<body>
99
<h1>ProStore iOS</h1>
10+
<script>
11+
fetch('https://https://raw.githubusercontent.com/ProStore-iOS/ProStore/refs/heads/main/app-repo.json')
12+
.then(response => response.json()) // Parse the response body as JSON
13+
.then(data => console.log(data)) // Work with the parsed data
14+
.catch(error => console.error('Error fetching data:', error)); // Handle any errors
15+
</script>
1016
</body>
11-
</html>
17+
18+
</html>

0 commit comments

Comments
 (0)