mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 16:14:12 +01:00
Small fix for Minefield.
This commit is contained in:
@@ -661,7 +661,7 @@ var Bookmarks = Module("bookmarks", {
|
||||
ctxt.compare = CompletionContext.Sort.unsorted;
|
||||
ctxt.filterFunc = null;
|
||||
|
||||
let words = ctxt.filter.split(/\s+/g);
|
||||
let words = ctxt.filter.toLowerCase().split(/\s+/g);
|
||||
ctxt.completions = ctxt.completions.filter(function (i) words.every(function (w) i.toLowerCase().indexOf(w) >= 0));
|
||||
|
||||
ctxt.hasItems = ctxt.completions.length;
|
||||
|
||||
@@ -12,9 +12,8 @@
|
||||
*/
|
||||
var Marks = Module("marks", {
|
||||
init: function init() {
|
||||
function replacer(key, val) val instanceof Ci.nsISupports ? null : val;
|
||||
this._localMarks = storage.newMap("local-marks", { privateData: true, replacer: replacer, store: true });
|
||||
this._urlMarks = storage.newMap("url-marks", { privateData: true, replacer: replacer, store: true });
|
||||
this._localMarks = storage.newMap("local-marks", { privateData: true, replacer: Storage.Replacer.skipXpcom, store: true });
|
||||
this._urlMarks = storage.newMap("url-marks", { privateData: true, replacer: Storage.Replacer.skipXpcom, store: true });
|
||||
|
||||
try {
|
||||
if (isArray(Iterator(this._localMarks).next()[1]))
|
||||
|
||||
Reference in New Issue
Block a user