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

Unified Diff: lib/prefs.js

Issue 29784585: Issue 6675 - Don't use relative path for info module require (Closed)
Patch Set: Created May 17, 2018, 1:48 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/options.js ('k') | lib/subscriptionInit.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/prefs.js
diff --git a/lib/prefs.js b/lib/prefs.js
index 5afdcecb898c8e83c63ade7ff2c013af34651fe9..bffc0e286ab932b1cdb105b11f94f75af03d26ba 100644
--- a/lib/prefs.js
+++ b/lib/prefs.js
@@ -290,7 +290,7 @@ function savePref(pref)
}
let customSave = new Map();
-if (require("../buildtools/info").platform == "gecko")
+if (require("info").platform == "gecko")
{
// Saving one storage value causes all others to be saved as well on Gecko.
// Make sure that updating ad counter doesn't cause the filters data to be
« no previous file with comments | « lib/options.js ('k') | lib/subscriptionInit.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld