AsyncLock used to trigger notifications sequentially.
Check all Anime stored in Store.getAnimeSubscriptions for updates. Emits NewEpisodeEvent through hasNewEpisode$ if a new episode was found.
Low-level function to show a notification. The difference between this function and just straight up calling chrome.notifications.create is that it uses the notificationLock to make sure only one notification is shown at a time.
Build an Observable for the notification event name
.
Get the updater for a given version.
Perform a series of updates to update the extension context.
Check for updates for subscribed Media. There can only be one check running at a given time.
Performs:
Show the given text on the popup badge. If the concept of a badge text does not exist (i.e. on mobile) the text is shown in the title.
Passing a falsy value or omitting the text altogether will reset the text.
Generated using TypeDoc
Updater performs the necessary steps to perform an update from the given version. It returns the version it updated to.