summaryrefslogtreecommitdiff
path: root/app/bits/assets/visibility.js
blob: f41819579e89d23f175873d2588d0d72b50724c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
let sensitiveInfoVisible = true;

async function toggleVisibility() {
    if (sensitiveInfoVisible) {
        sensitiveInfoVisible = false;
        document.getElementById("visibility-icon").innerText = "visibility_off";
        await refresh();
    } else {
        sensitiveInfoVisible = true;
        document.getElementById("visibility-icon").innerText = "visibility";
        await refresh();
    }
}