Here is an old article about why instead of doing browser detection one 
should do "feature detection":
http://jibbering.com/faq/notes/detect-browser/
On 10/21/2013 7:39 PM, Steven Allen wrote:
>
> In src/js/views/main.js:
>
> > @@ -28,6 +32,11 @@
> >      render: function() {
> >        this.$el.html(L.templates["pages/main"]());
> >
> > +      if(this.platform === "web"){
>
> Again, platform specific checks should never be in the core code base.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/haystack/listit/pull/215/files#r7112626>.
>