From 50c10cedc7b482907cd3087a54ae8b635eb06450 Mon Sep 17 00:00:00 2001 From: Layal Khatib Date: Tue, 3 Dec 2019 23:46:27 +0200 Subject: [PATCH] Use === for strict JavaScript comparison. --- keepassxc-browser/content/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepassxc-browser/content/ui.js b/keepassxc-browser/content/ui.js index eafb241..1a54479 100644 --- a/keepassxc-browser/content/ui.js +++ b/keepassxc-browser/content/ui.js @@ -85,7 +85,7 @@ kpxcUI.setIconPosition = function(icon, field) { const size = Number(icon.getAttribute('size')); icon.style.top = Pixels((rect.top + document.scrollingElement.scrollTop) + offset + 1); - if (document.dir == 'rtl') { + if (document.dir === 'rtl') { icon.style.left = Pixels((rect.left + document.scrollingElement.scrollLeft) + offset); } else {