scripting: expose Image()

canvas: typo
This commit is contained in:
jean-emmanuel 2022-05-22 12:58:49 +02:00
parent c84067c456
commit 23dadaaf7d
4 changed files with 7 additions and 2 deletions

View file

@ -114,6 +114,8 @@ The following variables and functions are accessible in this context.
- `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)
- `Image`: javavscript's [Image](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image) constructor
!!! note "this"
Unlike in most javascript contexts, the special keyword `this` doesn't point to an object but instead returns the string `"this"`.