Skip to content

Commit

Permalink
MapInfoUtils : register custom viewers in global var
Browse files Browse the repository at this point in the history
  • Loading branch information
isanchez-c2c committed Aug 3, 2021
1 parent a6712bd commit 5528f3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/client/utils/MapInfoUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const services = {
* @return {object} the registered component
*/
export const getViewer = (type) => {
return !!MapInfoUtils.VIEWERS[type] ? MapInfoUtils.VIEWERS[type] : null;
return !!window['customViewers'][type] ? window['customViewers'][type] : null;
};
/**
* To register a custom viewer
Expand Down Expand Up @@ -284,3 +284,5 @@ MapInfoUtils = {
VIEWERS: {}
};

window['customViewers'] = MapInfoUtils.VIEWERS

0 comments on commit 5528f3c

Please sign in to comment.