Browser classes on - Edge and Chrome

Browser classes on - Edge and Chrome

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

We all know that browser sniffing is evil, but occasionally unavoidable.

And, to help this, Moodle puts useful classes on body, like .ie, .firefox, etc.

Well, we have never had a class for .edge, even though it has been out for a while. Also, for historical reasons, Chrome (as well as Safari) was reported as .safari.

MDL-50812 has been around for a while, and I just hit this again, so I have done a fix.

Please can anyone peer review that?

Also, if you think this should not happen, please scream now.

Average of ratings: Useful (3)