Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter follow button causes console warnings about using dppx

I've added a Twitter Follow button to my site, using Twitter's instructions But in the Chrome console I see this warning:

Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) 

Any idea how to solve this?

like image 734
gilamran Avatar asked Sep 05 '14 11:09

gilamran


1 Answers

This is unavoidable in Chrome, as it tries to inform you of what it thinks might be an issue with the tweet button. It's not even a problem, just a suggestion. My solution to the annoying console message is to hide the notices in the console by using the following in the filter search with regex checked:

^(?!Consider using 'dppx')

This will hide any notices that start with that sentence. At the top of the console tab there is a Filter button next to the Clear Console Log button, if you don't already have it open. You can also filter by message type, this notice comes up under 'debug'.

like image 125
KaelaMichelle Avatar answered Nov 10 '22 10:11

KaelaMichelle