Skip to content

Commit

Permalink
Poll for storage changes
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Bennetts <[email protected]>
  • Loading branch information
psiinon committed Nov 28, 2023
1 parent bc7c850 commit 00136c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this add-on will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Changed
- Poll for storage changes.

## 0.0.7 - 2023-10-23

### Changed
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Then run the following:
- `yarn run build:firefox` to build firefox addon
- `yarn run build:opera` to build opera extension
- `yarn run build` builds and packs extensions all at once to extension/ directory
- `yarn run test` to run the test suite (you should not have anything listening on port 8080)

### Development

Expand Down
5 changes: 5 additions & 0 deletions source/ContentScript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ function enableExtension(): void {
subtree: true,
});

setInterval(() => {
// Have to poll to pickup storage changes in a timely fashion
reportAllStorage();
}, 500);

// This is needed for more traditional apps
reportPageLoaded(document, reportObject);
}
Expand Down

0 comments on commit 00136c2

Please sign in to comment.