From 0ac4605a2b9818f9f91ef2ac47cc470ef17b6f18 Mon Sep 17 00:00:00 2001 From: Joel Steres Date: Tue, 20 Dec 2016 16:24:50 -0800 Subject: [PATCH] Check for chrome zoom patch reference element before appending --- src/utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility.js b/src/utility.js index 9b51be91..1df7a33f 100644 --- a/src/utility.js +++ b/src/utility.js @@ -213,7 +213,7 @@ function countFlags(value) { */ function activateChromeZoomedOffsetPatch() { var style; - if (/Chrome\/[.0-9]*/.test(navigator.userAgent)) { + if (!session.chromePatchRefElement && /Chrome\/[.0-9]*/.test(navigator.userAgent)) { session.chromePatchRefElement = $(document.body); style = { top: 0,