From 1593c459d11b8f298e01b01ad2070eb4ea545fe8 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Thu, 5 Jan 2023 17:02:33 +0100 Subject: [PATCH] Fixed #165 --- src/globals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/globals.ts b/src/globals.ts index 7bdc5d1..3ea1ce0 100644 --- a/src/globals.ts +++ b/src/globals.ts @@ -96,7 +96,7 @@ export type TextExtractorApi = { * @returns */ export function getTextExtractor(): TextExtractorApi | undefined { - return (app as any).plugins?.plugins?.['text-extractor'].api + return (app as any).plugins?.plugins?.['text-extractor']?.api } export const SPACE_OR_PUNCTUATION =