> For the complete documentation index, see [llms.txt](https://learn.squirrel365.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.squirrel365.io/squirrel-addon-documentation/squirrel-helper-library/javascript/methods/getruntimemode.md).

# getRuntimeMode

Returns the runtime mode of Squirrel.&#x20;

<table><thead><tr><th width="202">RuntimeMode</th><th>Description</th></tr></thead><tbody><tr><td>design</td><td>Is in Design mode in the designer</td></tr><tr><td>interactive</td><td>Is in Debug mode in the designer</td></tr><tr><td>preview</td><td>Is in Preview mode in the designer</td></tr><tr><td>live</td><td>Is in Runtime (i.e. an exported project being run in the browser)</td></tr></tbody></table>

{% hint style="info" %}
Support for this method was added on release 1.12.x
{% endhint %}
