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

Unified Diff: lib/updater.js

Issue 5653480979038208: Issue 2325 - Add a way to set settings in libadblockplus for FRP and automatic updates (Closed)
Patch Set: Address more comments Created June 22, 2015, 7:45 a.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/prefs.js ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/updater.js
===================================================================
--- a/lib/updater.js
+++ b/lib/updater.js
@@ -36,6 +36,10 @@
function getDownloadable(forceCheck)
{
+ if (!forceCheck && Pref.disable_auto_updates)
+ {
+ return null;
+ }
let url = updateUrl.replace(/%TYPE%/g, forceCheck ? TYPE_MANUAL : TYPE_AUTOMATIC);
let downloadable = new Downloadable(url);
downloadable.lastError = Prefs.update_last_error;
« no previous file with comments | « lib/prefs.js ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld