Skip to content

Commit

Permalink
fix: script error
Browse files Browse the repository at this point in the history
  • Loading branch information
sensasi-delight committed Oct 21, 2023
1 parent b8dba49 commit 38ab8d5
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions _ssg_asset/script.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
<script type="module">
// 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";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)){ return; }
js = d.createElement(s); js.id = id;
js.innerHTML = `<script type="module">
// 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";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyD4QpeAvZKSZpEl7BiTQhKP9I3GRDcSXGA",
authDomain: "kamus-webdev.firebaseapp.com",
projectId: "kamus-webdev",
storageBucket: "kamus-webdev.appspot.com",
messagingSenderId: "495080524006",
appId: "1:495080524006:web:2f66a7c4f1462b7c841327",
measurementId: "G-N360DR0S0J"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script>`;

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyD4QpeAvZKSZpEl7BiTQhKP9I3GRDcSXGA",
authDomain: "kamus-webdev.firebaseapp.com",
projectId: "kamus-webdev",
storageBucket: "kamus-webdev.appspot.com",
messagingSenderId: "495080524006",
appId: "1:495080524006:web:2f66a7c4f1462b7c841327",
measurementId: "G-N360DR0S0J"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script>
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

0 comments on commit 38ab8d5

Please sign in to comment.