From f0bfa9558644bf53ab9464ae4758f09462402436 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 26 Oct 2009 09:51:38 +0000 Subject: Added enabled check when using 301 redirects git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@289 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/code/redirector.prototype.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/code/redirector.prototype.js b/chrome/content/code/redirector.prototype.js index 23400d4..bcc9036 100644 --- a/chrome/content/code/redirector.prototype.js +++ b/chrome/content/code/redirector.prototype.js @@ -184,6 +184,10 @@ Redirector.prototype = { //We only redirect documents... return; } + + if (!this._prefs.enabled) { + return; + } if (!newLocation) { return; -- cgit v1.2.3-70-g09d2