ソースを参照

fix shadow dom deserialization

Gildas 5 年 前
コミット
8a2fc13f57
1 ファイル変更4 行追加2 行削除
  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)};