scripting: expose session path as globals.session
This commit is contained in:
parent
e80711e2da
commit
ca4ccf181b
4 changed files with 9 additions and 1 deletions
|
|
@ -81,6 +81,7 @@ A property *cannot* contain multiple `JS{{}}` blocks
|
|||
- `ip`: client's ip address,
|
||||
- `url`: server url,
|
||||
- `platform`: operating system as seen by the client
|
||||
- `session`: session file path
|
||||
|
||||
In this context, `@{} / OSC{}` are seen as variables. When they change, the whole block will be evaluated again.
|
||||
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ The following variables and functions are accessible in this context.
|
|||
- `ip`: client's ip address,
|
||||
- `url`: server url,
|
||||
- `platform`: operating system as seen by the client
|
||||
- `session`: session file path
|
||||
- `clipboard`: instance of navigator [Clipboard](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue