Skip to content

Commit

Permalink
Merge pull request fingerprintjs#159 from arthuredelstein/master
Browse files Browse the repository at this point in the history
Prevent false positives in font detection in Tor Browser
  • Loading branch information
Valve committed May 26, 2016
2 parents 05e8b5b + 87cc054 commit 1321be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fingerprint2.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
// creates a span and load the font to detect and a base font for fallback
var createSpanWithFonts = function(fontToDetect, baseFont) {
var s = createSpan();
s.style.fontFamily = fontToDetect + "," + baseFont;
s.style.fontFamily = "'" + fontToDetect + "'," + baseFont;
return s;
};

Expand Down

0 comments on commit 1321be2

Please sign in to comment.