Skip to content

Commit

Permalink
Merge pull request #6 from vickkie/Pair
Browse files Browse the repository at this point in the history
Update import partytown
  • Loading branch information
vickkie authored Mar 23, 2024
2 parents cf76a5e + e7a1da4 commit 4fe2188
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { partytownSnippet } from "@builder.io/partytown/integration";
// main.js
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
Expand All @@ -10,8 +11,6 @@ if ("serviceWorker" in navigator) {
});
}

import { partytownSnippet } from "@builder.io/partytown/integration";

const snippetText = partytownSnippet();
const el = document.createElement("script");
el.innerText = snippetText;
Expand Down

0 comments on commit 4fe2188

Please sign in to comment.