Skip to content

Commit

Permalink
remove commuter rail alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed Oct 24, 2024
1 parent d55b849 commit 8af150e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/mobile-app-banner.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
const isAlertsPage = url => {
return /\/alerts/.test(url);
};

const isNotAndroid = () => {
return !/Android/.test(navigator.userAgent);
};
Expand All @@ -10,6 +6,10 @@ const isNotCommuterRail = url => {
return !/\/schedules\/CR-/.test(url);
};

const isAlertsPage = url => {
return isNotCommuterRail(url) && /\/alerts/.test(url);
};

const isSchedulePage = url => {
return isNotCommuterRail(url) && /\/schedules\/[\w.-]+\/line/.test(url);
};
Expand Down

0 comments on commit 8af150e

Please sign in to comment.