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: Added a unit test. Changed the global object injection routine. Created June 10, 2015, 8:42 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
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)
Eric 2015/06/10 17:48:16 This would read more clearly if we were using "ena
Felix Dahlke 2015/06/11 20:21:13 I've wondered about that too, but IMHO disable mak
Oleksandr 2015/06/12 07:36:14 This is subjective, of course, but I think enable_
+ {
+ 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