taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 22c931247bfccb787c7e4611ae41a4ad9ed5644a
parent a2e1de39cf9f81e227a0c6cb52cb090957bd9426
Author: Florian Dold <florian@dold.me>
Date:   Mon, 24 Nov 2025 23:52:04 +0100

DD39: new callback feature in taler-support meta tag

Diffstat:
Mdesign-documents/039-taler-browser-integration.rst | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/design-documents/039-taler-browser-integration.rst b/design-documents/039-taler-browser-integration.rst @@ -122,7 +122,14 @@ The following features are supported: * ``uri`` will hijack anchor elements (``<a href="taler://..." onclick=...>``) and replace their onclick handler with a different handler that lets the webexension wallet handle the ``taler://`` URI. -* (future): ``api`` will inject the ``window.taler`` API into the page +* ``callback`` will call the ``window.talercb`` callback with ``{ present: boolean }`` to + indicate the presence of the webext wallet (``present: true``). On deinstallation/deactivation + of the extension, the callback will be called with ``present: false`` on a best-effort basis. + +* (future): ``api`` will inject the ``window.taler`` API into the page. + It is recommended to use the ``callback`` feature to wait until + the ``window.taler`` object is available, as it is provided asynchronously + by the extension. Caveats and Comments