fixed regex

This commit is contained in:
Federico Zivolo 2014-09-26 13:38:56 +02:00
parent fab9cd5070
commit ed9eafc96a

View File

@ -57,7 +57,7 @@ var ripples = {
$ripple.setAttribute("style", $ripple.getAttribute("style") + ["-ms-" + scale,"-moz-" + scale,"-webkit-" + scale,scale].join(";"));
// Dirty fix for Firefox... seems like absolute elements inside <A> tags do not trigger the "click" event
if (/firefox|crios|safari|ip(ad|hone|od)/i.test(navigator.userAgent)) {
if (/firefox|crios|(^(?!.*chrome).*safari)|ip(ad|hone|od)/i.test(navigator.userAgent)) {
$el.click();
}