Skip to content

Commit 7ed10d9

Browse files
committed
feat: edit firebase
1 parent 9c6372a commit 7ed10d9

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

assets/js/firebase.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

home.html

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,28 @@ <h3>💻 Quick Start</h3>
138138
</p>
139139
</footer>
140140
<script src="./assets/js/script.js" defer></script>
141-
<script src="./assets/js/firebase.js" type="module"></script>
141+
<script type="module">
142+
// Import the functions you need from the SDKs you need
143+
import { initializeApp } from "https://www.gstatic.com/firebasejs/11.1.0/firebase-app.js";
144+
import { getAnalytics } from "https://www.gstatic.com/firebasejs/11.1.0/firebase-analytics.js";
145+
// TODO: Add SDKs for Firebase products that you want to use
146+
// https://firebase.google.com/docs/web/setup#available-libraries
147+
148+
// Your web app's Firebase configuration
149+
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
150+
const firebaseConfig = {
151+
apiKey: "AIzaSyArRxHZJUt4o2RxiLqX1yDSkuUd6ZFy45I",
152+
authDomain: "nport-link.firebaseapp.com",
153+
projectId: "nport-link",
154+
storageBucket: "nport-link.firebasestorage.app",
155+
messagingSenderId: "515584605320",
156+
appId: "1:515584605320:web:88daabc8d77146c6e7f33d",
157+
measurementId: "G-8MYXZL6PGD"
158+
};
159+
160+
// Initialize Firebase
161+
const app = initializeApp(firebaseConfig);
162+
const analytics = getAnalytics(app);
163+
</script>
142164
</body>
143165
</html>

0 commit comments

Comments
 (0)