Add support for disabling GitHub star counter at build time

This commit is contained in:
alam00000 committed 2026-08-14 14:41:44 +05:30
1 parent 10b63b5f89
commit 866ecfed2d
8 files changed
+50 -3

No files matched your search

+5 -1
View File
@@ -545,7 +545,11 @@ const init = async () => {
document.getElementById('github-stars-mobile'),
];
if (githubStarsElements.some((el) => el) && !__SIMPLE_MODE__) {
if (
githubStarsElements.some((el) => el) &&
!__SIMPLE_MODE__ &&
!__DISABLE_GITHUB_STARS__
) {
fetch('https://api.github.com/repos/alam00000/bentopdf')
.then((response) => response.json())
.then((data) => {