Skip to content

Commit

Permalink
Arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Nov 17, 2024
1 parent 8cf586f commit c7b1c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/one-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ await oneEvent(chrome.tabs.onCreated);
console.log('Hurray, a new tab was created')
```

It will return the parameters of the event:
It will return the arguments of the event:

```js
import {oneEvent} from 'webext-events';
Expand Down Expand Up @@ -53,7 +53,7 @@ if (timeout.aborted) {
}
```
Note that the signal is aborted, the promise is resolved with `undefined` rather than with the event parameters array.
Note that the signal is aborted, the promise is resolved with `undefined` rather than with the event arguments array.
## Compatibility
Expand Down

0 comments on commit c7b1c8e

Please sign in to comment.