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: Even more bracket style adjustments Created March 14, 2016, 2:19 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/typoNetError.js ('k') | updateRules.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {};
« no previous file with comments | « lib/typoNetError.js ('k') | updateRules.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld