Don't break player on ice error
I don't really know why the ice error is not catched by simple-peer, where it should according to the code
This commit is contained in:
parent
5e0dbb3e52
commit
da8637bac9
1 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,12 @@
|
|||
if (placeholderPreview) placeholderPreview.style.display = 'none'
|
||||
}
|
||||
|
||||
window.onerror = function () {
|
||||
window.onerror = function (msg) {
|
||||
if (typeof msg === 'string' && msg.toLowerCase().includes(' ice ')) {
|
||||
console.warn(msg)
|
||||
return
|
||||
}
|
||||
|
||||
window.displayIncompatibleBrowser()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue