Skip to content

Commit df41ee3

Browse files
authored
Update packages/auth/src/auth.js
1 parent 8fbbe23 commit df41ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/auth/src/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ fireauth.Auth.prototype.emitEmulatorWarning_ = function() {
321321
fireauth.util.consoleWarn('WARNING: You are using the Auth Emulator,' +
322322
' which is intended for local testing only. Do not use with' +
323323
' production credentials.');
324-
if (goog.global.document) {
324+
if (goog.global.document && goog.global.document.body) {
325325
const ele = goog.global.document.createElement('p');
326326
ele.innerText = 'Running in emulator mode. Do not use with production' +
327327
' credentials.';

0 commit comments

Comments
 (0)