allow a test notification from the notification help screen

This commit is contained in:
2023-12-24 21:24:51 -07:00
parent 853eb3c623
commit 05c6ddda02
10 changed files with 183 additions and 45 deletions

View File

@@ -503,7 +503,6 @@ async function getNotificationCount() {
lastNotifiedClaimId = settings["lastNotifiedClaimId"];
}
const activeDid = settings["activeDid"];
console.log("safari-not getNotificationsCount last", lastNotifiedClaimId);
accounts = await fetchAllAccounts();
let activeAccount = null;
for (let i = 0; i < accounts.length; i++) {
@@ -532,7 +531,6 @@ async function getNotificationCount() {
headers["Authorization"] = "Bearer " + (await accessToken(identifier));
}
console.log("safari-not getNotificationsCount fetch", headers);
const response = await fetch(
settings["apiServer"] + "/api/v2/report/claims",
{
@@ -540,10 +538,8 @@ async function getNotificationCount() {
headers: headers,
},
);
console.log("safari-not getNotificationsCount json", response);
if (response.status == 200) {
const json = await response.json();
console.log("safari-not getNotificationsCount json", json);
const claims = json["data"];
let newClaims = 0;
for (let i = 0; i < claims.length; i++) {