logos-blockchain-testing/docs/theme/highlight-init-34b37f60.js
2025-12-20 09:51:51 +01:00

18 lines
371 B
JavaScript

(function () {
const highlight = (attempt = 0) => {
if (window.hljs) {
window.hljs.highlightAll();
return;
}
if (attempt < 10) {
setTimeout(() => highlight(attempt + 1), 100);
}
};
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", () => highlight());
} else {
highlight();
}
})();