Skip to content

Commit

Permalink
Apply suggestions from Rob
Browse files Browse the repository at this point in the history
Co-authored-by: Rob Wu <[email protected]>
  • Loading branch information
rebloor and Rob--W authored Oct 25, 2023
1 parent 9d700c8 commit 3ab87af
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ None.

### Return value

A [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that is fulfilled with two arguments:
A [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that is fulfilled with an object with the result of the update request.

- `status`
- : A {{WebExtAPIRef('runtime.RequestUpdateCheckStatus')}} value — the result of the update check.
- `details` {{optional_inline}}
- `result` {{optional_inline}}
- `status`
- : A {{WebExtAPIRef('runtime.RequestUpdateCheckStatus')}} value — the result of the update check.

- : `object`. If `status` is `update_available`, this contains more information about the update. It is an object containing a property:

Expand All @@ -39,7 +39,7 @@ A [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that
Request an update and log the new version if one is available:

```js
function onRequested(status, details) {
function onRequested(result) {
console.log(status);
if (status === "update_available") {
console.log(details.version);
Expand Down

0 comments on commit 3ab87af

Please sign in to comment.