Explorar o código

fix shadow dom deserialization

Gildas %!s(int64=5) %!d(string=hai) anos
pai
achega
8a2fc13f57
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      extension/ui/content/content-ui-editor-web.js

+ 4 - 2
extension/ui/content/content-ui-editor-web.js

@@ -1843,8 +1843,10 @@ table {
 							shadowRoot.innerHTML = element.innerHTML;
 							element.remove();
 						} catch (error) {}						
-						processNode(shadowRoot);
-					}
+						if (shadowRoot) {
+							processNode(shadowRoot);
+						}
+					}					
 				})
 			};
 			const FORBIDDEN_TAG_NAMES = ${JSON.stringify(FORBIDDEN_TAG_NAMES)};