scripting: expose session path as globals.session

This commit is contained in:
jean-emmanuel 2021-05-02 11:04:22 +02:00
parent e80711e2da
commit ca4ccf181b
4 changed files with 9 additions and 1 deletions

View file

@ -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.

View file

@ -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)