root: add onPreload scripting property

This commit is contained in:
jean-emmanuel 2024-01-17 16:31:27 +01:00
parent a04c658bb5
commit 86e819870c
5 changed files with 20 additions and 1 deletions

View file

@ -103,6 +103,10 @@ The following variables are available in this context:
- `meta` (`boolean`): `true` if meta key is pressed
### `onPreload`
This script is specific to the root widget, it's called before any other widget is created and can be used to create global variables / functions accessible in other scripts.
## Available variables
The following variables and functions are accessible in this context.