Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Jan 4, 2024
1 parent 8fe5f02 commit d03ecad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsx-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function applyDomDepthSubstitutions(tree, currentDepth = 1, hasShadowRoot = fals

if (value.indexOf('__this__.') >= 0) {
const root = hasShadowRoot ? '.getRootNode().host' : `${'.parentElement'.repeat(currentDepth)}`;

node.attrs[attr].value = value.replace(/__this__/g, `this${root}`);
}
}
Expand Down

0 comments on commit d03ecad

Please sign in to comment.