Created
December 13, 2019 06:31
-
-
Save lexuschert/128ee3967fd486ea314b7fbf57631388 to your computer and use it in GitHub Desktop.
Check isRetina screen
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
function isRetina() { | |
return window.devicePixelRatio >= 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment