Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbisson committed Nov 7, 2023
1 parent 8adb699 commit e58a879
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 @@ -69,8 +69,8 @@ The `init` function accepts the following options:

Name | Type | Default | Description
--- | --- | --- | ---
root | DOM Element | `document` | Where to look for elements that should have the popup
selector | string | `'[data-wikipedia-preview]'` | How nodes that should have the popup are identified
root | string|Element|Element[] | `document` | Where to look for elements that should have the popup
selector. Can be a selector to locate the root, a DOM Element, or an array of Elements | string | `'[data-wikipedia-preview]'` | How nodes that should have the popup are identified
lang | string | `'en'` | Default Wikipedia language
popupContainer | DOM Element | `document.body` | Where to put the popup in the DOM
detectLinks | Boolean | `false` | Allow Wikipedia hyperlinks to have the popup
Expand Down

0 comments on commit e58a879

Please sign in to comment.