cartodb/lib/assets/javascripts/builder/routes/handle-modals-route.js
2020-06-15 10:58:47 +08:00

8 lines
182 B
JavaScript

module.exports = function (currentRoute, modals) {
var routeName = currentRoute[0];
if (routeName !== 'modal' && !modals.keepOpenOnRouteChange()) {
modals.destroy();
}
};