Files
HaloKeymind/docs/_javascript/hosted_doc_links.js
T
mikecarper 4bbd613417 Publish 1.17.1.9 USA Cascade picker and Mesh America catalogs
Point both stable providers and runtime controls to the validated v1.17.1.9-halo-keymind-cascade-dev-88c85108 family. Record completed package validation while retaining hardware coverage limitations. Give all documentation source pages their exact hosted links and mount the telemetry form only in the browser. Verify current combined Full and nRF52 Full/Reduced catalog fixtures.
2026-10-07 13:56:17 -07:00

33 lines
1.1 KiB
JavaScript

/* Source links help GitHub readers; the hosted page is already their destination. */
(function () {
"use strict";
const hostedHostname = "mikecarper.github.io";
const bannerSelector = ".meshcore-hosted-doc-link";
function hideHostedDocLinks(doc, hostname) {
if (hostname !== hostedHostname) return 0;
const banners = doc.querySelectorAll(bannerSelector);
for (const banner of banners) banner.hidden = true;
return banners.length;
}
if (typeof module === "object" && module.exports) {
module.exports = { hideHostedDocLinks };
}
if (typeof window === "undefined" || typeof document === "undefined") return;
const hide = function () {
hideHostedDocLinks(document, window.location.hostname);
};
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", hide, { once: true });
} else {
hide();
}
// Material can replace article content without loading the page again.
if (typeof document$ !== "undefined" && document$ && typeof document$.subscribe === "function") {
document$.subscribe(hide);
}
})();