Skip to content

Commit

Permalink
install a dummy Completers on initing
Browse files Browse the repository at this point in the history
just in case Completers are not ready
  • Loading branch information
gdh1995 committed Jan 24, 2017
1 parent 11ce87c commit 044f9dd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions background/completion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";
setTimeout(function() {
setTimeout((function() {
var HistoryCache, RankingUtils, RegexpCache, Decoder,
Completers, queryType, offset, autoSelect,
maxCharNum, maxResults, maxTotal, matchType,
Expand Down Expand Up @@ -1121,8 +1121,15 @@ searchEngines: {
}
};

}, 200);
}), 200);

setTimeout(function() {
Settings.postUpdate("searchEngines", null);
}, 300);

var Completers = { filter: function() {
var args = [].slice.call(arguments, 0);
setTimeout(function() {
Completers.filter.apply(Completers, args);
}, 210);
} };

0 comments on commit 044f9dd

Please sign in to comment.