justinwhall / wp-tel-links

Finds all telephone numbers and replaces them with click-2-call tel links
1 stars 0 forks source link

Mobile detection #1

Open morinoalaria opened 7 years ago

morinoalaria commented 7 years ago

I love the idea for this plugin, but is there a way to have it detect whether its on mobile, and only run then? I think our desktop users might get annoyed by phone links.

Maybe adding this or something like it? if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {}

justinwhall commented 7 years ago

I suppose. Although, more and more folks are using tel links on desktop - I do. It's not a bad feature addition however for those who think it looks bad on desktop.

morinoalaria commented 7 years ago

Didn't realize people were starting to use tel: on desktop. Will have to think about that :)

Jamie Klenetsky Fay Singer, Composer, Designer http://jamieklenetsky.com http://newmusicnj.com

On Tue, Oct 11, 2016 at 4:12 PM, Justin W Hall notifications@github.com wrote:

I suppose. Although, more and more folks are using tel links on desktop - I do. It's not a bad feature addition however for those who think it looks bad on desktop.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/justinwhall/wp-tel-links/issues/1#issuecomment-253031477, or mute the thread https://github.com/notifications/unsubscribe-auth/ADp5e1y6wUXmECIBH8wH-0O2Ah4SRMXWks5qy-2agaJpZM4KUDC5 .