diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-12 14:38:35 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-12 14:38:35 -0500 |
commit | 1dbdaf81561028725b7757705865bb8f404953be (patch) | |
tree | ef232bc751cccf9af0aeb48b5b13dd3cef1c95a8 /web/web.go | |
parent | 0b353733340629cd5fba5d3625f5c5c46ff5114d (diff) | |
download | chat-1dbdaf81561028725b7757705865bb8f404953be.tar.gz chat-1dbdaf81561028725b7757705865bb8f404953be.tar.bz2 chat-1dbdaf81561028725b7757705865bb8f404953be.zip |
Adding safari 8 to list of unsupported browsers.
Diffstat (limited to 'web/web.go')
-rw-r--r-- | web/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/web.go b/web/web.go index 1cae604ae..ffc791cb7 100644 --- a/web/web.go +++ b/web/web.go @@ -132,7 +132,7 @@ func watchAndParseTemplates() { } } -var browsersNotSupported string = "MSIE/8;MSIE/9;MSIE/10;Internet Explorer/8;Internet Explorer/9;Internet Explorer/10;Safari/7" +var browsersNotSupported string = "MSIE/8;MSIE/9;MSIE/10;Internet Explorer/8;Internet Explorer/9;Internet Explorer/10;Safari/7;Safari/8" func CheckBrowserCompatability(c *api.Context, r *http.Request) bool { ua := user_agent.New(r.UserAgent()) @@ -143,7 +143,7 @@ func CheckBrowserCompatability(c *api.Context, r *http.Request) bool { version := strings.Split(browser, "/") if strings.HasPrefix(bname, version[0]) && strings.HasPrefix(bversion, version[1]) { - c.Err = model.NewAppError("CheckBrowserCompatability", "Your current browser is not supported, please upgrade to one of the following browsers: Google Chrome 21 or higher, Internet Explorer 11 or higher, FireFox 14 or higher, Safari 8 or higher", "") + c.Err = model.NewAppError("CheckBrowserCompatability", "Your current browser is not supported, please upgrade to one of the following browsers: Google Chrome 21 or higher, Internet Explorer 11 or higher, FireFox 14 or higher, Safari 9 or higher", "") return false } } |