That's the correct thing to do and it's what real software engineers will do. But from the horrors I've seen in offshored websites, that's science-fiction to some coders. They will assume whatever version of Chrome they are running is the only one in existence and will use user-agent string once someone tells them their site is broken in Safari.