From e5f69904485c924d8eef44dd64ee7a07d9fc4789 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Tue, 30 Aug 2011 14:09:25 +0200 Subject: Delete redirects --- chrome/code/redirector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/code/redirector.js') 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(); }, -- cgit v1.2.3-70-g09d2