From 2d17e647c020a12370e8bfb21a14a25e3b435ac8 Mon Sep 17 00:00:00 2001 From: Ahmed Mokhtar Date: Thu, 17 Jan 2019 16:42:13 +0200 Subject: [PATCH] fix app crash because google is undefined in a PWA if the user is offline and cache is disabled. --- src/withGoogleMap.jsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/withGoogleMap.jsx b/src/withGoogleMap.jsx index a4bf3c41..3954a67e 100644 --- a/src/withGoogleMap.jsx +++ b/src/withGoogleMap.jsx @@ -49,12 +49,15 @@ export function withGoogleMap(BaseComponent) { if (this.state.map || node === null) { return } - warning( - `undefined` !== typeof google, - `Make sure you've put a