fix(docs): guard window reference in logging.ts for SSR compatibility (#38201)

This commit is contained in:
Evan Rusackas
2026-02-23 21:41:49 -05:00
committed by GitHub
parent 615f13419c
commit 8eb3046888

View File

@@ -17,7 +17,8 @@
* under the License.
*/
const console = window.console || {};
const console =
typeof window !== 'undefined' ? window.console || {} : globalThis.console;
const log = console.log || (() => {});
const logger = {