We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06a2ced commit 72e95cfCopy full SHA for 72e95cf
lib/find_mode_history.js
@@ -13,14 +13,14 @@ const FindModeHistory = {
13
if (this.isIncognitoMode) this.key = "findModeRawQueryListIncognito";
14
15
let result = await this.storage.get(this.key);
16
- if (result[this.key]) {
17
- this.rawQueryList = result[this.key] || [];
18
- } else if (this.isIncognitoMode) {
+ if (this.isIncognitoMode) {
19
// This is the first incognito tab, so we need to initialize the incognito-mode query
20
// history.
21
result = await this.storage.get("findModeRawQueryList");
22
this.rawQueryList = result.findModeRawQueryList || [];
23
this.storage.set({ findModeRawQueryListIncognito: this.rawQueryList });
+ } else {
+ this.rawQueryList = result[this.key] || [];
24
}
25
26
0 commit comments