Skip to content

Commit

Permalink
added note about enabling pre request script in window
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Aug 31, 2024
1 parent a5043a9 commit 897bfaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/altair-docs/docs/features/prerequest-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Also collections can be nested with sub collections as well. When a query that b

![Request script execution order](/assets/img/docs/request-script-execution-order.png)

::: warning Note
You have to enable the request scripts in the window for any request scripts to be executed (including the request scripts in the collection).
:::

### Available API for request scripts

Request scripts support all JavaScript syntax supported in the latest [ecmascript 2019 (ES10) specification](https://tc39.es/ecma262/) (except **with** and **label** statements, but those are discouraged anyway). These include things like `[].flat()`, `[].flatMap()`, `Object.fromEntries()`, etc.
Expand Down

0 comments on commit 897bfaa

Please sign in to comment.