Usar turbo:load
This commit is contained in:
parent
07035125e6
commit
7057324fc0
1 changed files with 1 additions and 3 deletions
|
@ -31,9 +31,7 @@ try {
|
|||
|
||||
if (window.axe) window.axe.configure({ locale: require('axe-core/locales/es.json') })
|
||||
|
||||
// Prevenir que Turbolinks interfiera la navegación a un anchor al
|
||||
// recargar la página
|
||||
document.addEventListener('turbolinks:load', event => {
|
||||
document.addEventListener('turbo:load', event => {
|
||||
if (!window.axe) return
|
||||
|
||||
window.axe.run().then(results => {
|
||||
|
|
Loading…
Reference in a new issue