Index: lib/typoFixer.js |
=================================================================== |
--- a/lib/typoFixer.js |
+++ b/lib/typoFixer.js |
@@ -247,11 +247,10 @@ |
callback: function() |
{ |
// No: Add to list of corrections (ignore) |
- if (/^www\./.test(value)) |
- { |
- value = value.substr(4); |
- } |
- Prefs.whitelist[value] = value; |
+ let {onWhitelistEntryAdded} = require("rules"); |
+ let entry = oldDomain.replace(/^www\./, ""); |
+ Prefs.whitelist[entry] = true; |
+ onWhitelistEntryAdded(entry); |
Prefs.whitelist = JSON.parse(JSON.stringify(Prefs.whitelist)); |
require("appIntegration").loadURI(value); |