| Index: lib/typoNetError.js |
| =================================================================== |
| --- a/lib/typoNetError.js |
| +++ b/lib/typoNetError.js |
| @@ -12,17 +12,16 @@ |
| * GNU General Public License for more details. |
| * |
| * You should have received a copy of the GNU General Public License |
| * along with URL Fixer. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| let {Prefs} = require("prefs"); |
| let {onWhitelistEntryRemoved} = require("typoRules"); |
| -let {processUserCorrection} = require("typoCollector"); |
| function getNetErrorOverlay(message) |
| { |
| let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"] |
| .createInstance(Ci.nsIXMLHttpRequest); |
| request.open("GET", "chrome://" + require("info").addonName + |
| "/content/netError.xhtml"); |
| request.addEventListener("load", function(event) |
| @@ -32,18 +31,16 @@ function getNetErrorOverlay(message) |
| }); |
| request.send(null); |
| } |
| function processCorrection(message) |
| { |
| let {oldHost, newHost} = message.data; |
| - processUserCorrection(oldHost, newHost); |
| - |
| if (newHost.indexOf("www.") == 0 && oldHost.indexOf("www.") == 0) |
| { |
| // Ignore www. prefix if they both start with it |
| newHost = newHost.substr(4); |
| oldHost = oldHost.substr(4); |
| } |
| if (oldHost && newHost != oldHost) |
| { |