diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js
index 83382164..2028a980 100644
--- a/app/ui/archiveTile.js
+++ b/app/ui/archiveTile.js
@@ -48,12 +48,12 @@ function password(state) {
${state.translate('addPassword')}
-
+
@@ -89,19 +88,15 @@ function password(state) {
function onPasswordPreviewButtonclicked(event) {
event.preventDefault();
- const target = event.currentTarget;
const input = document.getElementById('password-input');
- const eyeOn = target.querySelector('img:first-child');
- const eyeOff = target.querySelector('img:last-child');
+ const eyeIcon = event.currentTarget.querySelector('img');
if (input.type === 'password') {
input.type = 'text';
- eyeOn.classList.add('hidden');
- eyeOff.classList.remove('hidden');
+ eyeIcon.src = assets.get('eye-off.svg');
} else {
input.type = 'password';
- eyeOn.classList.remove('hidden');
- eyeOff.classList.add('hidden');
+ eyeIcon.src = assets.get('eye.svg');
}
input.focus();