mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 21:17:15 +03:00
fix getCWS util
This commit is contained in:
@@ -5,7 +5,7 @@ export const getCWSUsers = (extID: string) =>
|
||||
axios.post(`https://chrome.google.com/webstore/ajax/detail?pv=20210820&id=${extID}`)
|
||||
.then((res) => res.data.split("\n")[2])
|
||||
.then((data) => JSON.parse(data))
|
||||
.then((data) => (data[1][1][0][23]).replaceAll(/,|\+/,""))
|
||||
.then((data) => (data[1][1][0][23]).replaceAll(/,|\+/g,""))
|
||||
.then((data) => parseInt(data))
|
||||
.catch((err) => {
|
||||
Logger.error(`Error getting chrome users - ${err}`);
|
||||
|
||||
Reference in New Issue
Block a user