borismus/device.js — pull request #9 by matthewrobertson (2013-01-27 21:20:15+00:00)
Title: only consider link elements with `rel=alternate`

Currently device.js considers all `` tags in the `

` when building its versions list. This pull request changes it to only consider `` tags with `rel="alternate"`. With the code as it was I was getting redirected to my `.css` on some pages.