Created
November 20, 2013 21:36
-
-
Save jrdn91/7571510 to your computer and use it in GitHub Desktop.
I wrote this little snippet to account for Firefox 22+ scaling sites larger on Windows to honor window DPI scaling settings. Requires the browser plugin found here...
http://jquery.thewikies.com/browser/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var windows = (navigator.platform.toLowerCase() == 'win16' || navigator.platform.toLowerCase() == 'win32') ? true : false; | |
console.log(windows); | |
if($.browser.name == 'firefox' && $.browser.versionNumber >= 22 && windows == true){ | |
$('html').css('-moz-transform', 'scale(0.8)'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment