Download mobile/src/utils/notificationBlocklist.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/utils/notificationBlocklist.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/src/utils/notificationBlocklist.ts
-
curl -L -o notificationBlocklist.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/utils/notificationBlocklist.ts
558 Bytes
| /** | |
| * Return the notification blocklist after blocking or unblocking every package in | |
| * `packageNames`. Entries for other packages, including apps that are no longer | |
| * installed, are kept in their original order and duplicates are removed. | |
| */ | |
| export function setPackagesBlocked(blocklist: string[], packageNames: string[], blocked: boolean): string[] { | |
| const targets = new Set(packageNames) | |
| const others = blocklist.filter((packageName) => !targets.has(packageName)) | |
| return [...new Set(blocked ? [...others, ...packageNames] : others)] | |
| } | |