cartodb-4.42/lib/assets/javascripts/builder/routes/handle-modals-route.js

8 lines
182 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
module.exports = function (currentRoute, modals) {
var routeName = currentRoute[0];
if (routeName !== 'modal' && !modals.keepOpenOnRouteChange()) {
modals.destroy();
}
};