From 45343e74a3ee44ffdee3d4f38a2445260cdc6c4b Mon Sep 17 00:00:00 2001 From: "Tyler B. Thrailkill" Date: Tue, 9 Apr 2024 00:37:46 -0600 Subject: [PATCH] Update documentation about js libraries scope --- docs/build-apps/use-third-party-libraries.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/build-apps/use-third-party-libraries.md b/docs/build-apps/use-third-party-libraries.md index 31dbc4a9d..16ef31904 100644 --- a/docs/build-apps/use-third-party-libraries.md +++ b/docs/build-apps/use-third-party-libraries.md @@ -68,11 +68,12 @@ Navigate to the settings page and then click the plus sign **+** under the **Jav
-Create a JS query and insert code. +Create a JS query and insert code. All js libraries are imported to the `window` scope, thus you need to prefix any calls +with `window.`.
-You can obtain the same result by calling the `cowsay.say()` method in the value of the text component. +You can obtain the same result by calling `window.cowsay.say()` method in the value of the text component.