Skip to content

Commit

Permalink
Bump chrome types
Browse files Browse the repository at this point in the history
  • Loading branch information
HarlemSquirrel committed Jun 25, 2024
1 parent 8b8b910 commit b23f628
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"homepage": "https://github.com/antelle/keeweb-connect#readme",
"devDependencies": {
"@types/chrome": "^0.0.134",
"@types/chrome": "^0.0.268",
"@types/copy-webpack-plugin": "^8.0.0",
"@types/node": "^20.12.10",
"@types/webpack": "^5.28.5",
Expand Down
4 changes: 2 additions & 2 deletions src/background/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ async function getActiveFrame(tab: chrome.tabs.Tab): Promise<number> {
);
}
},
(results: number[]) => {
(result: chrome.scripting.InjectionResult<void>[]) => {
if (chrome.runtime.lastError) {
return resolve(0);
}
resolve(results[0] + 1); // indexOf returns -1, then it's root document which is frameId:0
resolve(Number(result[0]) + 1); // indexOf returns -1, then it's root document which is frameId:0
}
);
});
Expand Down

0 comments on commit b23f628

Please sign in to comment.