Skip to content

Commit

Permalink
remove double handler
Browse files Browse the repository at this point in the history
  • Loading branch information
progapandist committed Jun 9, 2024
1 parent f2f8265 commit fb6fb71
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/javascript/controllers/random_image_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ export default class extends Controller {
);
const currentURL = `${currentPath}${window.location.search}${window.location.hash}`;
window.history.replaceState({}, "", currentURL);

// Add event listener to intercept clicks on the viewport
document.addEventListener("click", this.handleClick.bind(this));
}

handleClick(event) {
Expand Down

0 comments on commit fb6fb71

Please sign in to comment.