enable red by default (#940)

* enable red by default

* fix test case
This commit is contained in:
cnderrauber
2022-08-22 17:40:12 +08:00
committed by GitHub
parent a118d21af0
commit c20a91d2b2
5 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ type ClientInfo struct {
}
func (c ClientInfo) SupportsAudioRED() bool {
return c.ClientInfo.Browser != "firefox" && c.ClientInfo.Browser != "safari"
return c.ClientInfo != nil && c.ClientInfo.Browser != "firefox" && c.ClientInfo.Browser != "safari"
}