From 0a84e8072c739455120b9fecfc8cada3cfae2cea Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Thu, 27 Nov 2025 16:36:06 +0100 Subject: [PATCH] docs: document viewDocument behavior --- docs/docs/sponsor-only/viewer.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/sponsor-only/viewer.mdx b/docs/docs/sponsor-only/viewer.mdx index 53642282..ed0ebd15 100644 --- a/docs/docs/sponsor-only/viewer.mdx +++ b/docs/docs/sponsor-only/viewer.mdx @@ -7,7 +7,7 @@ sidebar_class_name: larger-heading The viewer module is designed to work with the files that the document picker module returns. It supports both `uri` and `bookmark` coming from `open` and `import` modes, also supports virtual files and long-term access to the files. -The call to `viewDocument` returns a promise that resolves with `null` in case of success or rejects with error. +The call to `viewDocument` returns a promise that resolves with `null` in case of success or rejects with an error. It is a "fire-and-forget" function, meaning that the promise resolves right after the package asks the OS to present the preview. ### How it works