Skip to content

Commit cb65f9c

Browse files
committed
Formatting
1 parent 3735214 commit cb65f9c

File tree

1 file changed

+3
-1
lines changed
  • packages/auth/src/platform_browser

1 file changed

+3
-1
lines changed

packages/auth/src/platform_browser/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ export function getAuth(app: FirebaseApp = getApp()): Auth {
9292
const authTokenSyncPath = getExperimentalSetting('authTokenSyncURL');
9393
if (authTokenSyncPath) {
9494
// Reduce the chances of an XSS attack by only allowing secure contexts or the same origin.
95-
const isLocalHost = ['localhost', '127.0.0.1', '0.0.0.0'].includes(location.hostname);
95+
const isLocalHost = ['localhost', '127.0.0.1', '0.0.0.0'].includes(
96+
location.hostname
97+
);
9698
if (isSecureContext || isLocalHost) {
9799
const authTokenSyncUrl = new URL(authTokenSyncPath, location.origin);
98100
if (location.origin === authTokenSyncUrl.origin) {

0 commit comments

Comments
 (0)