summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2020-09-04 13:01:31 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2020-09-04 13:01:31 -0500
commit30ad390074ced0117015d5b3b7b8bdf96ae193ac (patch)
tree43a3812a0ca3fcaf4cb3add2ec5c5ae04e78840e
parent5aa3c32d71d0a6fa431c72fdf40dbcf15f63c24f (diff)
downloadepiphany-30ad390074ced0117015d5b3b7b8bdf96ae193ac.tar.gz
Revert "ephy: Hook menu also for one user"
This reverts commit 1e45efe7d788fc2e8ba673420a3563b11bb9560d.
-rw-r--r--embed/web-process-extension/resources/js/ephy.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/embed/web-process-extension/resources/js/ephy.js b/embed/web-process-extension/resources/js/ephy.js
index 0b787d4f5..456d7c39e 100644
--- a/embed/web-process-extension/resources/js/ephy.js
+++ b/embed/web-process-extension/resources/js/ephy.js
@@ -475,8 +475,8 @@ Ephy.FormManager = class FormManager
if (formAuth.usernameNode) {
Ephy.passwordManager.queryUsernames(formAuth.origin).then(users => {
- if (users.length) {
- Ephy.log('At least one saved username, hooking menu for selection');
+ if (users.length > 1) {
+ Ephy.log('More than one saved username, hooking menu for choosing which one to select');
if (!this._preFillUserMenu)
this._preFillUserMenu = new Ephy.PreFillUserMenu(this, formAuth, users);
}