Skip to content

Commit

Permalink
Merge pull request #62 from HarlemSquirrel/manifest-v3-fixes
Browse files Browse the repository at this point in the history
Manifest V3 fixes
  • Loading branch information
HarlemSquirrel authored Aug 4, 2024
2 parents b56b5b7 + df8b0ac commit da945a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"128": "icons/icon128.png"
},
"background": {
"scripts": [
"js/background.js"
]
"scripts": ["js/background.js"],
"service_worker": "js/background.js"
},
"permissions": [
"activeTab",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "npm run eslint && npm run build-chrome && npm run build-firefox && npm run build-edge && npm run build-safari",
"build-chrome": "cross-env KW_BROWSER=chrome webpack --mode=production",
"build-firefox": "cross-env KW_BROWSER=firefox webpack --mode=production",
"build-firefox": "cross-env KW_BROWSER=firefox webpack --mode=production && npx web-ext build -o -s dist/firefox",
"build-edge": "cross-env KW_BROWSER=edge webpack --mode=production",
"build-safari": "cross-env KW_BROWSER=safari webpack --mode=production",
"watch-chrome": "cross-env KW_BROWSER=chrome webpack --mode=development --watch",
Expand Down
2 changes: 1 addition & 1 deletion src/background/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class Backend extends TypedEmitter<BackendEvents> {

private request(request: KeeWebConnectRequest): Promise<KeeWebConnectResponse> {
return new Promise((resolve, reject) => {
const timeout = window.setTimeout(() => {
const timeout = self.setTimeout(() => {
this._currentRequest = undefined;
const errStr = chrome.i18n.getMessage('errorRequestTimeout');
reject(new Error(errStr));
Expand Down

0 comments on commit da945a5

Please sign in to comment.