// retoor <retoor@molodetz.nl>
export class UserScope {
static get() {
const docs = window.DEVPLACE_DOCS || {};
let username = docs.username || "";
if (!username) {
const el = document.querySelector(".topnav-user-name");
if (el) username = el.textContent.trim();
}
return username ? `user:${username}` : "guest";
}
}