Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Jun 15, 2024
1 parent ed6d13f commit 108610f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,9 @@ await idb.didExpire('firstItem');

#### `observe()`

Usage: `observe(key: string, callback: function, targetOrigins: string[] = [])`
Usage: `observe(key: string, callback: function)`

When passed a key name and callback function, it will listen to changes to the given Storage object's value. Optionally, changes can also be [broadcasted](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage) to specified cross-origin targets.
When passed a key name and callback function, it will listen to changes to the given Storage object's value.

<details>
<summary><strong>Storage</strong></summary>
Expand Down

0 comments on commit 108610f

Please sign in to comment.