Skip to content

Commit

Permalink
fix: script
Browse files Browse the repository at this point in the history
  • Loading branch information
sensasi-delight committed Oct 21, 2023
1 parent 83fc290 commit f0aa7ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _ssg_asset/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)){ return; }
js = d.createElement(s); js.id = id;
js.innerHTML = `<script type="module">
js.type = 'module';
js.innerHTML = `
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.5.0/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.5.0/firebase-analytics.js";
Expand All @@ -24,7 +25,7 @@
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script>`;
`;

fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
}(document.body, 'script'));

0 comments on commit f0aa7ca

Please sign in to comment.