> ISPO SDK documentation. [HTML](https://ispo.ai/docs/functions/core.enableBrowserMock.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Function enableBrowserMock

*   <a id="enablebrowsermock"></a>
    
    ```typescript
    enableBrowserMock(): void
    ```
    
    Enables the in-memory browser mock for top-level development tabs.
    
    Projects normally do not need this when their bundler exposes `import.meta.env.DEV`; the SDK enables the mock automatically in that case. This explicit opt-in covers non-Vite dev setups. It never overrides the real host bridge when the project is running inside ISPO's iframe.
    
    #### Returns void
