Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 45343e7

Browse files
Update documentation about js libraries scope
1 parent 58dab40 commit 45343e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎docs/build-apps/use-third-party-libraries.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ Navigate to the settings page and then click the plus sign **+** under the **Jav
6868

6969
<figure><img src="../.gitbook/assets/third-party-lib-1.png" alt=""><figcaption></figcaption></figure>
7070

71-
Create a JS query and insert code.
71+
Create a JS query and insert code. All js libraries are imported to the `window` scope, thus you need to prefix any calls
72+
with `window.`.
7273

7374
<figure><img src="../.gitbook/assets/third-party-lib-2.png" alt=""><figcaption></figcaption></figure>
7475

75-
You can obtain the same result by calling the `cowsay.say()` method in the value of the text component.
76+
You can obtain the same result by calling `window.cowsay.say()` method in the value of the text component.
7677

7778
<figure><img src="../.gitbook/assets/third-party-lib-3.png" alt=""><figcaption></figcaption></figure>
7879

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /