Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/prefs.js

Issue 10800079: Implemented update checking functionality (Closed)
Patch Set: Created June 5, 2013, 6:47 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/api.js ('k') | lib/updater.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/prefs.js
===================================================================
--- a/lib/prefs.js
+++ b/lib/prefs.js
@@ -28,19 +28,19 @@ let defaults = {
data_directory: "",
savestats: false,
privateBrowsing: false,
subscriptions_fallbackerrors: 5,
subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%VERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNELSTATUS%&responseStatus=%RESPONSESTATUS%",
subscriptions_autoupdate: true,
subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exceptionrules.txt",
documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%",
- update_url_release: "https://updates.adblockplus.org/%NAME%/update.json",
- update_url_devbuild: "https://adblockplus.org/devbuilds/%s/update.json",
- last_update: 0
+ update_url_release: "https://updates.adblockplus.org/%NAME%/update.json?id=%ID%&version=%VERSION%&app=%APP%&type=%TYPE%",
+ update_url_devbuild: "https://adblockplus.org/devbuilds/%s/update.json?id=%ID%&version=%VERSION%&app=%APP%&type=%TYPE%",
+ next_update_check: 0
};
let values = Object.create(defaults);
let path = _fileSystem.resolve("prefs.json");
let listeners = [];
let isDirty = false;
let isSaving = false;
« no previous file with comments | « lib/api.js ('k') | lib/updater.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld