0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/examples/docs/public/make-scrollable-code-focusable.js
2021-12-22 16:11:05 -05:00

3 lines
116 B
JavaScript

Array.from(document.getElementsByTagName('pre')).forEach((element) => {
element.setAttribute('tabindex', '0');
});