Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Tracker DB v4 endpoints #616

Merged
merged 10 commits into from Jan 5, 2021

new db files now using .json extension from cdn

  • Loading branch information
christophertino committed Dec 10, 2020
commit 2cdc1671524844e6aae7f08a357502447a19a6e5
@@ -70,7 +70,7 @@ const {
const IS_EDGE = (BROWSER_INFO.name === 'edge');
const IS_FIREFOX = (BROWSER_INFO.name === 'firefox');
const IS_ANDROID = (BROWSER_INFO.os === 'android');
const VERSION_CHECK_URL = `${CDN_BASE_URL}/update/v4/version`;
const VERSION_CHECK_URL = `${CDN_BASE_URL}/update/v4/versions.json`;
const REAL_ESTATE_ID = 'ghostery';
const ONE_DAY_MSEC = 86400000;
const ONE_HOUR_MSEC = 3600000;
@@ -130,7 +130,7 @@ class Updatable {
*/
_remoteFetcher(callback) {
log(`fetching ${this.type} from remote`);
const UPDATE_URL = `${CDN_BASE_URL}/update/v4/${this.type}`;
const UPDATE_URL = `${CDN_BASE_URL}/update/v4/${this.type}.json`;

getJson(UPDATE_URL).then((list) => {
callback(true, list);
ProTip! Use n and p to navigate between commits in a pull request.