Can I render warning message if user's browser is not supported?

前端 未结 4 744
萌比男神i
萌比男神i 2021-01-01 20:48

I am working on a react application and customers want it to show a special message if user\'s old browser does not support (e.g. IE 9).

So

4条回答
  •  感动是毒
    2021-01-01 21:14

    I found a lot of JS scripts to detect user's browser name and version, so I had to mix them to get exactly what I want

    public/index.html

    
    

    This script allows users to proceed if their browser is chrome >= 48 or ie >= 10 or any version of edge. Otherwise it shows a special message asking user to update or change his browser.

    You can also customize this script to your needs, modifying isSupported() function.

提交回复
热议问题