We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a25c30 commit 6005ca3Copy full SHA for 6005ca3
src/background/bookmark.ts
@@ -14,3 +14,7 @@ message.addListener({
14
type: 'bookmark-search',
15
callback: search,
16
})
17
+
18
+chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
19
+ message.sendTab(tabId, 'load-complete')
20
+})
src/content/bookmark.ts
@@ -29,6 +29,16 @@ class BookmarkSearch {
29
}
30
}, 100)
31
32
33
+ message.addListener({
34
+ type: 'load-complete',
35
+ callback: (message, sender, sendResponse) => {
36
+ setTimeout(() => {
37
+ this.sendSearch(this.getKeyword())
38
+ }, 500);
39
+ sendResponse('')
40
+ }
41
+ })
42
} else if (this.host.startsWith('www.google.')) {
43
this.getKeyword = () => ($('input.gsfi')[0]['value'] as string)
44
this.innerClass = '#res'
0 commit comments