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: Make the preconfiguration generic. Move FRP suppression to ABP engine. Created June 9, 2015, 1:36 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
Index: lib/updater.js
===================================================================
--- a/lib/updater.js
+++ b/lib/updater.js
@@ -36,6 +36,10 @@
function getDownloadable(forceCheck)
{
+ if (!forceCheck && Preconfig.disable_auto_updates)
Felix Dahlke 2015/06/09 19:40:51 I think we should be using Pref.disable_auto_updat
+ {
+ return null;
+ }
let url = updateUrl.replace(/%TYPE%/g, forceCheck ? TYPE_MANUAL : TYPE_AUTOMATIC);
let downloadable = new Downloadable(url);
downloadable.lastError = Prefs.update_last_error;

Powered by Google App Engine
This is Rietveld