Template:Browser Detection: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Seddon (WMF) (talk | contribs)
No edit summary
Seddon (WMF) (talk | contribs)
No edit summary
 
Line 11: Line 11:
}
}
//Check if browser is Safari
//Check if browser is Safari
else if (navigator.userAgent.search("Safari") >= 0 <nowiki>&</nowiki> navigator.userAgent.search("Chrome") < 0) {
else if (navigator.userAgent.search("Safari") >= 0 && navigator.userAgent.search("Chrome") < 0) {
console.log('This is a Safari Browser')
console.log('This is a Safari Browser')
}
}

Latest revision as of 20:51, 11 January 2020