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

Unified Diff: lib/typoRules.js

Issue 29337915: Issue 3748 - Update URL Fixer dependency on buildtools to revision c92cc4e4a338 and make it E10S-co… (Closed)
Patch Set: Updated path in updateRules.py as well Created March 7, 2016, 8:23 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/typoRules.js
===================================================================
--- a/lib/typoRules.js
+++ b/lib/typoRules.js
@@ -34,17 +34,17 @@ updateTimer = Cc["@mozilla.org/timer;1"]
updateTimer.initWithCallback(onTimer, 1000 * 60 * 5, Ci.nsITimer.TYPE_REPEATING_SLACK);
onShutdown.add(() => updateTimer.cancel());
function loadRules()
{
loadRulesFrom(Services.io.newFileURI(getRuleFile()).spec, false, function(success)
{
if (!success)
- loadRulesFrom(require("info").addonRoot + "defaults/typoRules.json", true);
+ loadRulesFrom("chrome://" + require("info").addonName + "/content/typoRules.json", true);
});
}
function loadRulesFrom(url, ignoreVersion, callback)
{
if (typeof callback != "function")
callback = function() {};
« lib/typoNetError.js ('K') | « lib/typoNetError.js ('k') | updateRules.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld