diff options
-rw-r--r-- | chrome/content/code/redirect.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/content/code/redirect.js b/chrome/content/code/redirect.js index 7016715..e65ca50 100644 --- a/chrome/content/code/redirect.js +++ b/chrome/content/code/redirect.js @@ -168,7 +168,10 @@ Redirect.prototype = { },
_excludeMatch : function(url) {
- var shouldExclude = !!(this._rxExclude && this._rxExclude.exec(url));
+ if (!this._rxExclude) {
+ return false;
+ }
+ var shouldExclude = !!this._rxExclude.exec(url);
this._rxExclude.lastIndex = 0;
return shouldExclude;
},
|