0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/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');
});