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() {}; |