Skip to content

Instantly share code, notes, and snippets.

View itamar's full-sized avatar

Itamar Yunger itamar

View GitHub Profile
// Line #624, I needed to "reset the audioPlayers array
function profileAudioPlayers(){
audioPlayers = []
$('.provider-audio').each ...
}
// Line #236
Changed from:
$('.provider-audio__play').on('click touchstart', function(){
To:
@itamar
itamar / gist:ce0a5446906919ac7b3d92e3e68dc408
Created July 19, 2018 20:32
Hide Intercom launcher on mobile devices
isMobile = () ->
if navigator.userAgent.match(/Android/i) ||
navigator.userAgent.match(/webOS/i) ||
navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/BlackBerry/i) ||
navigator.userAgent.match(/Windows Phone/i)
true
else
false