diff --git a/src/core/ApolloClient.ts b/src/core/ApolloClient.ts index 52d7cde360a..9f1f56da74e 100644 --- a/src/core/ApolloClient.ts +++ b/src/core/ApolloClient.ts @@ -342,13 +342,13 @@ export class ApolloClient implements DataProxy { */ if (!hasSuggestedDevtools && __DEV__) { hasSuggestedDevtools = true; - setTimeout(() => { - if ( - window.document && - window.top === window.self && - !(window as any).__APOLLO_DEVTOOLS_GLOBAL_HOOK__ && - /^(https?|file):$/.test(window.location.protocol) - ) { + if ( + window.document && + window.top === window.self && + !(window as any).__APOLLO_DEVTOOLS_GLOBAL_HOOK__ && + /^(https?|file):$/.test(window.location.protocol) + ) { + setTimeout(() => { const nav = window.navigator; const ua = nav && nav.userAgent; let url: string | undefined; @@ -369,8 +369,8 @@ export class ApolloClient implements DataProxy { url ); } - } - }, 10000); + }, 10000); + } } }