Files
ROCm/docs/extension/rocm_docs_custom/static/selector/utils.js
2025-12-11 16:51:22 -05:00

15 lines
322 B
JavaScript

export function domReady(callback) {
if (document.readyState !== "loading") {
callback();
} else {
document.addEventListener("DOMContentLoaded", callback, { once: true });
}
}
const DEBUG = true;
export const logDebug = (...args) => {
if (DEBUG) {
console.debug("[ROCmDocsSelector]", ...args);
}
};