From 280f6f495f9f8bdfe3d68709fcbfdb88869e21d5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 23 Apr 2019 09:34:05 -0400 Subject: [PATCH] update variable name --- src/content/autofill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/autofill.js b/src/content/autofill.js index 4aff4dea816..d1ba38ead22 100644 --- a/src/content/autofill.js +++ b/src/content/autofill.js @@ -486,7 +486,7 @@ var theDoc = el.ownerDocument.documentElement, rect = el.getBoundingClientRect(), docScrollWidth = theDoc.scrollWidth, - kosri = theDoc.scrollHeight, + docScrollHeight = theDoc.scrollHeight, leftOffset = rect.left - theDoc.clientLeft, topOffset = rect.top - theDoc.clientTop, theRect; @@ -506,7 +506,7 @@ } } - if (0 > leftOffset || leftOffset > docScrollWidth || 0 > topOffset || topOffset > kosri) { + if (0 > leftOffset || leftOffset > docScrollWidth || 0 > topOffset || topOffset > docScrollHeight) { return false; }