Skip to content

Instantly share code, notes, and snippets.

@smd877
Created July 4, 2019 03:51
Show Gist options
  • Save smd877/59ca0cba322d68258f4cb8dfff934902 to your computer and use it in GitHub Desktop.
Save smd877/59ca0cba322d68258f4cb8dfff934902 to your computer and use it in GitHub Desktop.
--- ../html.bak/index.html 2019-07-04 03:46:11.000000000 +0900
+++ index.html 2019-07-04 11:45:24.008447808 +0900
@@ -75,9 +75,22 @@
<!-- Import and configure the Firebase SDK -->
<!-- These scripts are made available when the app is served or deployed on Firebase Hosting -->
<!-- If you do not serve/host your project using Firebase Hosting see https://firebase.google.com/docs/web/setup -->
-<script src="/__/firebase/6.2.4/firebase-app.js"></script>
-<script src="/__/firebase/6.2.4/firebase-messaging.js"></script>
-<script src="/__/firebase/init.js"></script>
+<script src="https://www.gstatic.com/firebasejs/6.2.4/firebase-app.js"></script>
+<script src="https://www.gstatic.com/firebasejs/6.2.4/firebase-messaging.js"></script>
+<script>
+ // Your web app's Firebase configuration
+ var firebaseConfig = {
+ apiKey: "AIzaSyCNp7t2Cug1TIjk-8WKF-QX9QVaU2m-UGM",
+ authDomain: "smd-pj01.firebaseapp.com",
+ databaseURL: "https://smd-pj01.firebaseio.com",
+ projectId: "smd-pj01",
+ storageBucket: "",
+ messagingSenderId: "596738022287",
+ appId: "1:596738022287:web:ddc64d7e8e3c8548"
+ };
+ // Initialize Firebase
+ firebase.initializeApp(firebaseConfig);
+</script>
<script>
// [START get_messaging_object]
@@ -86,7 +99,7 @@
// [END get_messaging_object]
// [START set_public_vapid_key]
// Add the public key generated from the console here.
- messaging.usePublicVapidKey('<YOUR_PUBLIC_VAPID_KEY_HERE>');
+ messaging.usePublicVapidKey('BArVAz799m079vJKEW-Fi3arbt6YdRXiLmmfYPZdlXs9_Mz_tk8UA__s9YgmhYqzvWY43XBeytB7AzsOFVyhbZs');
// [END set_public_vapid_key]
// IDs of divs that display Instance ID token UI or request permission UI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment