Use === for strict JavaScript comparison.

This commit is contained in:
Layal Khatib 2019-12-03 23:46:27 +02:00
parent 4910dc7973
commit 50c10cedc7

View file

@ -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 {