Skip to content

Commit 28f2a42

Browse files
author
Khristian Brooks
committed
fixed window error for isomorphic applications accessing GoogleApiWrapper
1 parent 4d71d0e commit 28f2a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/lib/GoogleApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
var googleVersion = opts.version || '3';
4040

4141
var script = null;
42-
var google = window.google || null;
42+
var google = typeof window !== 'undefined' && window.google || null;
4343
var loading = false;
4444
var channel = null;
4545
var language = opts.language;

0 commit comments

Comments
 (0)