Ignore ResizeObserver errors
It seems that Firefox has a bug where these are fired incorrectly when we are in an <iframe>. The events also contain no useful details, so we can't really do anything useful with them anyway.
This commit is contained in:
parent
7ad4e60df6
commit
2f602da961
|
@ -21,6 +21,12 @@
|
||||||
try {
|
try {
|
||||||
const msg = document.getElementById('noVNC_fallback_errormsg');
|
const msg = document.getElementById('noVNC_fallback_errormsg');
|
||||||
|
|
||||||
|
// Work around Firefox bug:
|
||||||
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1685038
|
||||||
|
if (event.message === "ResizeObserver loop completed with undelivered notifications.") {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Only show the initial error
|
// Only show the initial error
|
||||||
if (msg.hasChildNodes()) {
|
if (msg.hasChildNodes()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue