Skip to content

Commit

Permalink
only auto open alert images on diversion pages
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed Jul 15, 2024
1 parent c46dfa0 commit f50b666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/alert-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const addAlertItemEventHandlers = () => {
alertItem.addEventListener("click", handleAlertItemClick);
alertItem.addEventListener("keydown", handleAlertItemKeyPress);

if (alertItem.querySelector("img")) {
if (document.querySelector(".diversions-template") && alertItem.querySelector("img")) {
alertItem.click();
}
});
Expand Down

0 comments on commit f50b666

Please sign in to comment.