Skip to content

Commit

Permalink
Check for chrome zoom patch reference element before appending
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Steres committed Jun 12, 2017
1 parent 914f9e8 commit 0ac4605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0ac4605

Please sign in to comment.