fix website (#946)

* ahh im sorry

* Update script.js
This commit is contained in:
Cloudburst 2022-04-12 20:09:17 +02:00 committed by GitHub
parent dbbd0b29a7
commit fc3caab866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<title>CloudStream-3 Supported Sites</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
@ -17,7 +17,7 @@
<tbody id="siteList"></tbody>
</table>
</div>
<script src="/script.js" type="text/javascript"></script>
<script src="script.js" type="text/javascript"></script>
</body>
</html>

View file

@ -1,6 +1,6 @@
const count = document.getElementById("count")
const mainContainer = document.getElementById("siteList");
fetch("/providers.json" + "?v=" + Date.now())
fetch("providers.json" + "?v=" + Date.now())
.then(r => r.json())
.then(function (data) {
count.innerHTML = Object.keys(data).length;
@ -46,4 +46,4 @@ fetch("/providers.json" + "?v=" + Date.now())
mainContainer.appendChild(node);
}
}
})
})