Add alert kinds, minor tweaks, bump version

This commit is contained in:
Jon Staab
2025-06-30 10:52:03 -07:00
parent 1d6bd887ba
commit c54225380e
18 changed files with 42 additions and 31 deletions
+10 -6
View File
@@ -79,7 +79,11 @@ export class FeedController {
}
})
listen = async () => (await this.getListener())()
listen = () => {
const promise = this.getListener().then(call)
return () => promise.then(call)
}
async _getRequestsLoader(requests: RequestItem[]) {
const seen = new Set()
@@ -389,7 +393,7 @@ export class FeedController {
return () => {
const unsubscribers = controllers.map(controller => controller.listen())
return () => unsubscribers.forEach(async p => call(await p))
return () => unsubscribers.forEach(call)
}
}
@@ -414,9 +418,9 @@ export class FeedController {
)
return () => {
const unsubscribers = controllers.map(controller => controller.listen())
const unsubscribers = controllers.map(controller => controller.listen())
return () => unsubscribers.forEach(async p => call(await p))
return () => unsubscribers.forEach(call)
}
}
@@ -438,9 +442,9 @@ export class FeedController {
)
return () => {
const unsubscribers = controllers.map(controller => controller.listen())
const unsubscribers = controllers.map(controller => controller.listen())
return () => unsubscribers.forEach(async p => call(await p))
return () => unsubscribers.forEach(call)
}
}
}