mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-10 09:14:34 +01:00
Add support for disabling GitHub star counter at build time
This commit is contained in:
1 parent
10b63b5f89
commit
866ecfed2d
8 files changed
+50
-3
No files matched your search
+5
-1
@@ -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) => {
|
||||
|
||||
Vendored
+1
@@ -13,4 +13,5 @@ interface ImportMeta {
|
||||
}
|
||||
|
||||
declare const __SIMPLE_MODE__: boolean;
|
||||
declare const __DISABLE_GITHUB_STARS__: boolean;
|
||||
declare const __DISABLED_TOOLS__: string[];
|
||||
Reference in new issue
Block a user