diff --git a/docs/api/javascript/setup.md b/docs/api/javascript/setup.md index 17d297182..2aa65f6a0 100644 --- a/docs/api/javascript/setup.md +++ b/docs/api/javascript/setup.md @@ -304,7 +304,7 @@ window.addEventListener(load, Pagy.init) window.addEventListener(turbo:load, Pagy.init) // Turbolinks -window.addEventListener(turbolinks:load, Pagy.init) +window.addEventListener("turbolinks:load", Pagy.init) // custom listener window.addEventListener(yourEventListener, Pagy.init)