Skip to content

Commit

Permalink
Save another char
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Jan 11, 2024
1 parent 84080d5 commit 90302ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/partytown/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function createPlugin(options?: PartytownOptions): AstroIntegrati
let partytownSnippetHtml: string;
const partytownEntrypoint = resolve('@builder.io/partytown/package.json');
const partytownLibDirectory = path.resolve(partytownEntrypoint, '../lib');
const SELF_DESTRUCT_ON_VIEW_TRANSITION = `;((d,s)=>(s=d.currentScript,d.addEventListener('astro:before-swap',()=>s?.remove(),{once:true})))(document);`
const SELF_DESTRUCT_ON_VIEW_TRANSITION = `;((d,s)=>(s=d.currentScript,d.addEventListener('astro:before-swap',()=>s.remove(),{once:true})))(document);`
return {
name: '@astrojs/partytown',
hooks: {
Expand Down

0 comments on commit 90302ea

Please sign in to comment.