sanctum/avia_core/aviaversion.js
MiTHRAL 4f5cbbb3c2
Some checks are pending
/ Build App (push) Waiting to run
chore: rebrand UI to Sanctum, bump to v1.0.0
Replace all user-visible "Avia"/"AviaClient" strings with "Sanctum" equivalents
across all UI components. Update version to 1.0.0 in package.json and add release
notes to metainfo.xml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 17:42:21 -04:00

34 lines
817 B
JavaScript

(function () {
if (window.__AVIA_VERSION_PATCH__) return;
window.__AVIA_VERSION_PATCH__ = true;
function patchVersion() {
document
.querySelectorAll("span.lh_1rem.fs_0\\.75rem.ls_0\\.03125rem.fw_500")
.forEach((el) => {
if (el.dataset.aviaPatched) return;
if (!el.textContent.trim().startsWith("Stoat for Desktop")) return;
const stoatVersion = window.native.versions.desktop();
el.dataset.aviaPatched = "true";
el.innerHTML = `
Sanctum Desktop<br>
<span style="font-size:10px;opacity:0.7;">
Based on Stoat ${stoatVersion}
</span>
`;
});
}
const observer = new MutationObserver(patchVersion);
observer.observe(document.body, {
childList: true,
subtree: true,
});
patchVersion();
})();