Skip to content

Commit c83d8ea

Browse files
committed
Remove key param from OPTIMIZATION_PERCENT_URL
The `percent.json` endpoint does not require an API key for access, so the `key` query parameter has been removed from `OPTIMIZATION_PERCENT_URL`. The key remains in `downloadOptimizationStats`, as `stats.json` requires authentication.
1 parent 1803f9f commit c83d8ea

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/optimization.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ import fs from 'fs';
33
import { downloadFile } from './utils/webutils';
44

55
// Here we can access optimizable filters and its optimization percentages
6-
const OPTIMIZATION_KEY = '4DDBE80A3DA94D819A00523252FB6380';
7-
export const OPTIMIZATION_PERCENT_URL = `https://chrome.adtidy.org/optimization_config/percent.json?key=${OPTIMIZATION_KEY}`;
6+
export const OPTIMIZATION_PERCENT_URL = 'https://chrome.adtidy.org/optimization_config/percent.json';
87

98
const downloadOptimizationPercent = () => downloadFile(OPTIMIZATION_PERCENT_URL);
109

1110
const downloadOptimizationStats = (filterId) => {
12-
const optimizationStatsUrl = `https://chrome.adtidy.org/filters/${filterId}/stats.json?key=${OPTIMIZATION_KEY}`;
11+
const optimizationStatsUrl = `https://chrome.adtidy.org/filters/${filterId}/stats.json?key=4DDBE80A3DA94D819A00523252FB6380`;
1312

1413
return downloadFile(optimizationStatsUrl);
1514
};

0 commit comments

Comments
 (0)