aboutsummaryrefslogtreecommitdiff
path: root/chrome/content
diff options
context:
space:
mode:
authorEinar Egilsson2009-10-26 09:51:38 +0000
committerEinar Egilsson2009-10-26 09:51:38 +0000
commitf0bfa9558644bf53ab9464ae4758f09462402436 (patch)
treec0b13f3747f6442d240b5218a4a11eeb143ca928 /chrome/content
parent88a382a54500d6572446b453a560ef072128a393 (diff)
Added enabled check when using 301 redirects
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@289 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content')
-rw-r--r--chrome/content/code/redirector.prototype.js4
1 files changed, 4 insertions, 0 deletions
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;