Skip to content

Commit

Permalink
Scoop.summary: summary.state should be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocargnelutti committed May 5, 2023
1 parent f279b6f commit ca44879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ export class Scoop {
/**
* @typedef {Object} ScoopCaptureSummary
* @property {int} state
* @property {object} states - Possible values of Scoop.state
* @property {string[]} states - Indexed Scoop.states values.
* @property {string} targetUrl
* @property {boolean} targetUrlIsWebPage
* @property {ScoopOptions} options
Expand Down Expand Up @@ -1396,7 +1396,7 @@ export class Scoop {
async summary () {
const summary = {
state: this.state,
states: Scoop.states,
states: Object.keys(Scoop.states), // So summary.states[summary.state] = 'NAME-OF-STATE'
targetUrl: this.url,
targetUrlIsWebPage: this.targetUrlIsWebPage,
options: this.options,
Expand Down

0 comments on commit ca44879

Please sign in to comment.