From 2b29df7a8ecd95384dbee30e27743cf25703e447 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 22 Dec 2023 10:58:37 -0500 Subject: 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 --- ext/js/background/offscreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js/background') 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 ? -- cgit v1.2.3