mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Add default user count, update url
This commit is contained in:
parent
8d8388386e
commit
591b342855
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import { Logger } from "../utils/logger";
|
||||||
import { getCWSUsers, getChromeUsers } from "../utils/getCWSUsers";
|
import { getCWSUsers, getChromeUsers } from "../utils/getCWSUsers";
|
||||||
|
|
||||||
// A cache of the number of chrome web store users
|
// A cache of the number of chrome web store users
|
||||||
let chromeUsersCache = 0;
|
let chromeUsersCache = 30000;
|
||||||
let firefoxUsersCache = 0;
|
let firefoxUsersCache = 0;
|
||||||
|
|
||||||
interface DBStatsData {
|
interface DBStatsData {
|
||||||
|
@ -64,7 +64,7 @@ async function getStats(): Promise<DBStatsData> {
|
||||||
|
|
||||||
function updateExtensionUsers() {
|
function updateExtensionUsers() {
|
||||||
const mozillaAddonsUrl = "https://addons.mozilla.org/api/v3/addons/addon/dearrow/";
|
const mozillaAddonsUrl = "https://addons.mozilla.org/api/v3/addons/addon/dearrow/";
|
||||||
const chromeExtensionUrl = "https://chrome.google.com/webstore/detail/enamippconapkdmgfgjchkhakpfinmaj";
|
const chromeExtensionUrl = "https://chromewebstore.google.com/detail/dearrow-better-titles-and/enamippconapkdmgfgjchkhakpfinmaj";
|
||||||
const chromeExtId = "enamippconapkdmgfgjchkhakpfinmaj";
|
const chromeExtId = "enamippconapkdmgfgjchkhakpfinmaj";
|
||||||
|
|
||||||
axios.get(mozillaAddonsUrl)
|
axios.get(mozillaAddonsUrl)
|
||||||
|
|
Loading…
Reference in a new issue