sutty/app/javascript/etc/turbolinks-anchors.js

4 lines
143 B
JavaScript
Raw Normal View History

2020-11-20 00:23:23 +00:00
document.addEventListener('turbolinks:load', () => {
document.querySelectorAll('a[href^="#"]').forEach(a => a.dataset.turbolinks = false)
2020-11-20 00:23:23 +00:00
})