Skip to content

Commit

Permalink
Prevent login save prompt if credentials match
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Apr 7, 2024
1 parent c6ed701 commit 4c5c3f3
Show file tree
Hide file tree
Showing 18 changed files with 310 additions and 19 deletions.
229 changes: 229 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dev": "npm run clean && npm run set-version && webpack --mode development -w --progress --config webpack.config.js",
"dev:chrome": "BROWSER=chrome npm run dev",
"dev:edge": "BROWSER=edge npm run dev",
"dev:firefox": "concurrently -k \"BROWSER=firefox npm run dev\" \"cd dist && web-ext run\" --restart-tries 20 --restart-after 5000",
"dev:firefox": "concurrently -k \"BROWSER=firefox npm run dev\" \"cd dist && web-ext run\" --restart-tries 20 --restart-after 5000 --devtools --keep-profile-changes",
"format": "prettier --write '{{source,test}/**/*.{ts,js},webpack.config.js}'",
"release": "run-s clean release:chrome release:firefox release:edge",
"release:chrome": "npm run build:chrome && mkdirp release/chrome && zip -r release/chrome/extension.zip ./dist",
Expand Down Expand Up @@ -91,6 +91,7 @@
"obstate": "^0.1.4",
"on-navigate": "^0.1.1",
"otpauth": "^9.1.5",
"parse-domain": "^8.0.2",
"prettier": "^3.1.0",
"pug-plugin": "^5.0.2",
"react": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion source/background/services/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { formatURL } from "../../shared/library/url.js";

export async function openEntryPageInNewTab(_: SearchResult, url: string): Promise<number> {
const tab = await createNewTab(formatURL(url));
if (typeof tab.id !== "number") {
if (typeof tab?.id !== "number") {
throw new Error("No tab ID for created tab");
}
return tab.id;
Expand Down
Loading

0 comments on commit 4c5c3f3

Please sign in to comment.