aboutsummaryrefslogtreecommitdiff
path: root/chrome/code/redirector.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/code/redirector.js')
-rw-r--r--chrome/code/redirector.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/code/redirector.js b/chrome/code/redirector.js
index 5c6fe81..8a5cbed 100644
--- a/chrome/code/redirector.js
+++ b/chrome/code/redirector.js
@@ -180,14 +180,11 @@ Redirector = {
this.exportRedirects(file);
},
- switchItems : function(index1, index2) {
- var item = this._list[index1];
- this._list[index1] = this._list[index2];
- this._list[index2] = item;
+ sortRedirects : function(sortFunc) {
+ this._list.sort(sortFunc);
this.save();
},
-
// nsIContentPolicy implementation
shouldLoad: function(contentType, contentLocation, requestOrigin, aContext, mimeTypeGuess, extra) {
if (contentLocation.scheme != "http" && contentLocation.scheme != "https") {