Skip to content

Commit

Permalink
Merge pull request #59 from mbrezovsky/master
Browse files Browse the repository at this point in the history
Check window object exists during SSR build in angular universal apps
  • Loading branch information
Remo committed Apr 2, 2020
2 parents 20e5a53 + b4d74f8 commit e30a2f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/markerclusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,8 @@ ClusterIcon.prototype.addClass = function() {
// Export Symbols for Closure
// If you are not going to compile with closure then you can remove the
// code below.
window['MarkerClusterer'] = MarkerClusterer;
if (typeof window != 'undefined')
window['MarkerClusterer'] = MarkerClusterer;
MarkerClusterer.prototype['addMarker'] = MarkerClusterer.prototype.addMarker;
MarkerClusterer.prototype['addMarkers'] = MarkerClusterer.prototype.addMarkers;
MarkerClusterer.prototype['clearMarkers'] =
Expand Down

0 comments on commit e30a2f5

Please sign in to comment.