diff options
author | Einar Egilsson | 2009-10-26 09:51:38 +0000 |
---|---|---|
committer | Einar Egilsson | 2009-10-26 09:51:38 +0000 |
commit | f0bfa9558644bf53ab9464ae4758f09462402436 (patch) | |
tree | c0b13f3747f6442d240b5218a4a11eeb143ca928 /chrome/content/code | |
parent | 88a382a54500d6572446b453a560ef072128a393 (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/code')
-rw-r--r-- | chrome/content/code/redirector.prototype.js | 4 |
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;
|