Skip to content

Commit

Permalink
fix(mobile-app-banner): remove not trip planner constraint (#2352)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen authored Jan 31, 2025
1 parent 6b29819 commit 34dbf18
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions assets/js/mobile-app-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ const isNotFerry = url => {
return !/\/schedules\/Boat-/.test(url);
};

const isNotTripPlanner = url => {
return !/\/trip-planner/.test(url);
};

const isAlertsPage = url => {
return isNotCommuterRail(url) && isNotFerry(url) && /\/alerts/.test(url);
};
Expand All @@ -33,11 +29,9 @@ const isStopPage = url => {
const isIncludedPage = () => {
const url = window.location.href;

return [isAlertsPage, isSchedulePage, isStopPage, isNotTripPlanner].some(
fn => {
return fn(url);
}
);
return [isAlertsPage, isSchedulePage, isStopPage].some(fn => {
return fn(url);
});
};

/**
Expand Down

0 comments on commit 34dbf18

Please sign in to comment.