Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbe73da

Browse files
committed
fix Invalid typeof comparison value
1 parent 98b08e7 commit cbe73da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ function registerTraceModule(_module) {
276276
// add `PlotlyGeoAssets` global to stash references to all fetched
277277
// topojson / geojson data
278278
if((bpmName === 'geo' || bpmName === 'mapbox') &&
279-
(typeof window !== undefined && window.PlotlyGeoAssets === undefined)
279+
(typeof window !== 'undefined' && window.PlotlyGeoAssets === undefined)
280280
) {
281281
window.PlotlyGeoAssets = {topojson: {}};
282282
}

0 commit comments

Comments
 (0)