Skip to content

Commit d59d9aa

Browse files
save file
1 parent 87424d4 commit d59d9aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/editors/html/auto-save/v2.0/auto-save-v2.0.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@
102102

103103
var content = [...host.shadowRoot.childNodes];
104104

105+
const parent = host.parentNode;
106+
const next = host.nextSibling;
107+
parent.removeChild(host);
108+
parent.insertBefore(host, next);
109+
105110
var shadow = host.attachShadow({mode:'open',customElements:{}});
106111
shadow.append(...content);
107112
debugger;

0 commit comments

Comments
 (0)