forked from trent_larson/crowd-funder-for-time-pwa
allow a test notification from the notification help screen
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user