cartodb-4.42/lib/assets/javascripts/new-dashboard/store/utils/getCARTOData.js

12 lines
283 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
export default function getCARTOData () {
if (window.CartoConfig) {
return window.CartoConfig.data;
}
return {
user_data: window.user_data,
notification: window.user_data.notification,
organization_notifications: window.organization_notifications || []
};
}