Skip to content

chore: add missing whitespace & fix an incorrect snippet #352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auth-next/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}

Expand Down
2 changes: 1 addition & 1 deletion database-next/read-and-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion snippets/auth-next/index/auth_set_language_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down