Skip to content
Snippets Groups Projects
Commit 312124a5 authored by RMidhunSuresh's avatar RMidhunSuresh
Browse files

Ignore errors from <img> for now

parent 2369fc73
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,10 @@ function hideOnError() {
// When an error occurs, log it and then hide everything!
const handler = e => {
if (e.message === "ResizeObserver loop completed with undelivered notifications." ||
e.message === "ResizeObserver loop limit exceeded") {
e.message === "ResizeObserver loop limit exceeded" ||
// hydrogen renders an <img> with src = undefined while the image is being decrypted
// todo: resolve this
e.target.tagName === "IMG") {
// see https://stackoverflow.com/a/64257593
e.stopImmediatePropagation();
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment