From 62c004fe3c0d1486757020d6ccda225b7e10dc6c Mon Sep 17 00:00:00 2001 From: Juyoung Kim Date: Fri, 7 Jul 2023 21:24:37 +0900 Subject: [PATCH 1/2] chore: add missing whitespace --- database-next/read-and-write.js | 2 +- .../read-and-write/rtdb_social_listen_star_count.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database-next/read-and-write.js b/database-next/read-and-write.js index 4196c0d7..c06c66b4 100644 --- a/database-next/read-and-write.js +++ b/database-next/read-and-write.js @@ -44,7 +44,7 @@ function socialListenStarCount() { } // [START rtdb_social_listen_star_count] - const { getDatabase, ref, onValue} = require("firebase/database"); + const { getDatabase, ref, onValue } = require("firebase/database"); const db = getDatabase(); const starCountRef = ref(db, 'posts/' + postId + '/starCount'); diff --git a/snippets/database-next/read-and-write/rtdb_social_listen_star_count.js b/snippets/database-next/read-and-write/rtdb_social_listen_star_count.js index ab520ce6..eb782894 100644 --- a/snippets/database-next/read-and-write/rtdb_social_listen_star_count.js +++ b/snippets/database-next/read-and-write/rtdb_social_listen_star_count.js @@ -5,7 +5,7 @@ // 'npm run snippets'. // [START rtdb_social_listen_star_count_modular] -import { getDatabase, ref, onValue} from "firebase/database"; +import { getDatabase, ref, onValue } from "firebase/database"; const db = getDatabase(); const starCountRef = ref(db, 'posts/' + postId + '/starCount'); From a5a9a35fbbd9ff2fc01851f7db713071feb53d61 Mon Sep 17 00:00:00 2001 From: Juyoung Kim Date: Fri, 7 Jul 2023 21:28:43 +0900 Subject: [PATCH 2/2] chore: fix an incorrect snippet (#324) --- auth-next/index.js | 2 +- snippets/auth-next/index/auth_set_language_code.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auth-next/index.js b/auth-next/index.js index b741a6d7..04ac7d03 100644 --- a/auth-next/index.js +++ b/auth-next/index.js @@ -87,7 +87,7 @@ function setLanguageCode() { const auth = getAuth(); auth.languageCode = 'it'; // To apply the default browser preference instead of explicitly setting it. - // firebase.auth().useDeviceLanguage(); + // auth.useDeviceLanguage(); // [END auth_set_language_code] } diff --git a/snippets/auth-next/index/auth_set_language_code.js b/snippets/auth-next/index/auth_set_language_code.js index 47e78295..fe9a2025 100644 --- a/snippets/auth-next/index/auth_set_language_code.js +++ b/snippets/auth-next/index/auth_set_language_code.js @@ -10,5 +10,5 @@ import { getAuth } from "firebase/auth"; const auth = getAuth(); auth.languageCode = 'it'; // To apply the default browser preference instead of explicitly setting it. -// firebase.auth().useDeviceLanguage(); +// auth.useDeviceLanguage(); // [END auth_set_language_code_modular] \ No newline at end of file