add option for users to opt out
All checks were successful
Code quality checks / biome (push) Successful in 7s
All checks were successful
Code quality checks / biome (push) Successful in 7s
This commit is contained in:
parent
ba67ba55e3
commit
5ad5d7181f
2 changed files with 14 additions and 0 deletions
|
@ -382,6 +382,19 @@ async function updatePresence(initialData) {
|
|||
|
||||
const kv = data.kv || {};
|
||||
|
||||
if (kv.optout === "true") {
|
||||
const loadingOverlay = document.getElementById("loading-overlay");
|
||||
if (loadingOverlay) {
|
||||
loadingOverlay.innerHTML = `
|
||||
<div class="error-message">
|
||||
<p>This user has opted out of sharing their presence.</p>
|
||||
</div>
|
||||
`;
|
||||
loadingOverlay.style.opacity = "1";
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
const cssLink = kv.css;
|
||||
if (cssLink) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue