0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/docs/public/make-scrollable-code-focusable.js
2021-08-26 12:15:33 -07:00

3 lines
117 B
JavaScript

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