Skip to content

Instantly share code, notes, and snippets.

@andr3
Created April 3, 2013 14:41

Revisions

  1. andr3 renamed this gist Apr 3, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. andr3 created this gist Apr 3, 2013.
    5 changes: 5 additions & 0 deletions Detecting Retina
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    if ("devicePixelRatio" in window && window.devicePixelRatio>1) {
    // HD code
    } else {
    // SD code
    }