generated from sensasi-delight/sensasi-dictionary-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8dba49
commit 38ab8d5
Showing
1 changed file
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); |