Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
clarify that the custom js file can only contain a class
  • Loading branch information
saml-dev authored Jan 4, 2025
1 parent ac0da85 commit 8c1b7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Allows you to bind an [Invocable Script](#invocable-scripts) to a hotkey.
## Usage/Example

CustomJS works by writing javascript classes. Each file can only contain one class.
CustomJS works by writing javascript classes. Each file can contain one class _and only one class_. Imports, constants, etc defined outside the class will break CustomJS.

### Accessing your classes

Expand Down

0 comments on commit 8c1b7b9

Please sign in to comment.