Skip to content

Commit

Permalink
fix: reset shouldShowCredentialsImportFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
dbajpeyi committed Sep 3, 2024
1 parent 1d2b1ea commit 1e4903e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
5 changes: 1 addition & 4 deletions dist/autofill-debug.js

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

5 changes: 1 addition & 4 deletions dist/autofill.js

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

5 changes: 1 addition & 4 deletions src/CredentialsImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CredentialsImport {
* Check if password promotion prompt should be shown
*/
shouldShowCredentialsImportFlow () {
return !this.device.settings.availableInputTypes.credentials?.username
return this.device.settings.availableInputTypes.credentialsImport
}

init () {
Expand Down Expand Up @@ -44,9 +44,6 @@ class CredentialsImport {
// Make sure the tooltip is closed before we try to open it
this.device.uiController?.removeTooltip('interface')

// sleep for 300 ms to give the UI time to update
await new Promise(resolve => setTimeout(resolve, 300))

const activeInput = this.device.activeForm?.activeInput
activeInput?.focus()
}
Expand Down
5 changes: 1 addition & 4 deletions swift-package/Resources/assets/autofill-debug.js

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

5 changes: 1 addition & 4 deletions swift-package/Resources/assets/autofill.js

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

0 comments on commit 1e4903e

Please sign in to comment.