I am trying to redirect the Safari browser on Desktop only. I have a video in the header that the background color matches the header background. The problem is Safari on OS X is showing the colors differently. On Safari for the iPad and the iPhone, the colors are right, matching Chrome, I.E. and Firefox. So I made a different color background to match the video for Safari desktop only, but when I redirect the browser for Safari, it also redirects the iPad and iPhone which then shows a color issue.
var uagent = navigator.userAgent.toLowerCase();
if(/safari/.test(uagent) && !/chrome/.test(uagent))
{
window.location.href = "index_safari.html"
}
Any advise to only target Safari on the desktop and allowing the Safari browser on ios to stay on that page would be greatly appreciated.