fixed hook description (browser_will_search) (#1937)

* fixed hook description

* added name to CONTRIBUTORS
This commit is contained in:
Sam Penny 2022-07-01 01:12:27 +01:00 committed by GitHub
parent af8ae69837
commit 1e8ea0cade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -104,6 +104,7 @@ Luka Warren <github.com/lukawarren>
wisherhxl <wisherhxl@gmail.com>
dobefore <1432338032@qq.com>
Bart Louwers <bart.git@emeel.net>
Sam Penny <github.com/sam1penny>
********************

View file

@ -430,11 +430,14 @@ hooks = [
You can modify context.search to change the text that is sent to the
searching backend.
If you set context.card_ids to a list of ids, the regular search will
If you set context.ids to a list of ids, the regular search will
not be performed, and the provided ids will be used instead.
Your add-on should check if context.card_ids is not None, and return
Your add-on should check if context.ids is not None, and return
without making changes if it has been set.
In versions of Anki lower than 2.1.45 the field to check is
context.card_ids rather than context.ids
""",
),
Hook(