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 Feb 14, 2017
1 parent a289e6b commit 5cad830
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 @@ -212,7 +212,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 5cad830

Please sign in to comment.