Skip to content

Commit

Permalink
fix #139 sometimes search can not work
Browse files Browse the repository at this point in the history
  • Loading branch information
harytfw committed May 29, 2022
1 parent a43462b commit b8812e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ class ExecutorClass {
// check if browser.search API available and if I should use it?
if (browserMajorVersion >= 63 && Boolean(this.action.is_browser_search) === true) {
const tabHoldingSearch = await this.openTab('about:blank');
await new Promise(r => setTimeout(r, 50));
if (this.action.engine_name !== getI18nMessage('defaultText')) {
return browser.search.search({
query: keyword,
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "__MSG_extensionDescription__",
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "1.56.7",
"version": "1.56.8",
"homepage_url": "https://github.com/harytfw/GlitterDrag",
"icons": {
"128": "/icon/drag.png"
Expand Down

0 comments on commit b8812e1

Please sign in to comment.