diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-22 10:58:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 15:58:37 +0000 |
commit | 2b29df7a8ecd95384dbee30e27743cf25703e447 (patch) | |
tree | 8bccc8c822f740325830496aca4855b75f37e6ed /ext/js/background/offscreen.js | |
parent | 8d2aaf2757f69bdf85281319813ff57db276f71a (diff) |
API map updates (#418)
* Simplify some types
* Organize
* Add additional types for explicit sync and async handlers
* Rename ApiItem to ApiDescriptor
* Simplify template names
* Remove lax types
* Document
* Add support for extra params
* Update APIs
* Make handler explicitly async
* Add comments
* Add more types
* Description fixes, add ApiParam
* Type updates
* Add invokeApiMapHandler
* Fixes
Diffstat (limited to 'ext/js/background/offscreen.js')
-rw-r--r-- | ext/js/background/offscreen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/background/offscreen.js b/ext/js/background/offscreen.js index 44b0af77..1cab5929 100644 --- a/ext/js/background/offscreen.js +++ b/ext/js/background/offscreen.js @@ -138,7 +138,7 @@ export class Offscreen { } /** @type {import('offscreen').OffscreenApiHandler<'findTermsOffscreen'>} */ - _findTermsHandler({mode, text, options}) { + async _findTermsHandler({mode, text, options}) { const enabledDictionaryMap = new Map(options.enabledDictionaryMap); const excludeDictionaryDefinitions = ( options.excludeDictionaryDefinitions !== null ? |