diff options
author | Einar Egilsson | 2011-08-30 14:09:25 +0200 |
---|---|---|
committer | Einar Egilsson | 2011-08-30 14:09:25 +0200 |
commit | e5f69904485c924d8eef44dd64ee7a07d9fc4789 (patch) | |
tree | d30ddb70b6232c67803124346aa37b6fd12ad071 /chrome/code/redirector.js | |
parent | f0843d03e265c47258c92499248f45bff4ece6f4 (diff) |
Delete redirects
Diffstat (limited to 'chrome/code/redirector.js')
-rw-r--r-- | chrome/code/redirector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/code/redirector.js b/chrome/code/redirector.js index 8a5cbed..9c7d769 100644 --- a/chrome/code/redirector.js +++ b/chrome/code/redirector.js @@ -40,8 +40,8 @@ Redirector = { } }, - deleteRedirectAt : function(index) { - this._list.splice(index, 1); + deleteRedirect : function(redirect) { + this._list.splice(this._list.indexOf(redirect), 1); this.save(); }, |