From e58a879ebf858befc551d99c29b592543041d42d Mon Sep 17 00:00:00 2001 From: Sbisson Date: Tue, 7 Nov 2023 13:52:13 -0500 Subject: [PATCH] Update docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac7bec89..f6298394 100644 --- a/README.md +++ b/README.md @@ -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