Skip to content

Commit

Permalink
fix: no appendChild
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Dec 12, 2024
1 parent a40b555 commit 5303952
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/openasar-dom-optimizer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ if (store.remove) {
Element.prototype.removeChild = optimize(Element.prototype.removeChild)
}

if (store.append) {
Element.prototype.appendChild = optimize(Element.prototype.appendChild)
}
// if (store.append) {
// Element.prototype.appendChild = optimize(Element.prototype.appendChild)
// }

export const settings = () => (
<>
Expand All @@ -48,6 +48,7 @@ export const settings = () => (
</Text>
<br />
<br />
{/*
<SwitchItem
value={store.append}
onChange={(v) => {
Expand All @@ -61,6 +62,8 @@ export const settings = () => (
>
Apply to Element.appendChild
</SwitchItem>
*/}

<SwitchItem
value={store.remove}
onChange={(v) => {
Expand Down

0 comments on commit 5303952

Please sign in to comment.