CondoWebAppPopHistoryState

This method removes one or more entries from the mini-app navigation stack — the equivalent of window.history.go(-n). After the call, Condo will send a CondoWebAppHistoryPopState event with the state that ended up at the top of the stack.

Platforms

B2B WebB2C WebB2C Cordova

Method params

Parameter nameParameter typeRequiredParameter description
amountnumbernoNumber of entries to remove from the stack. Defaults to 1

Return value

If successful, the method will return a JSON object containing a single success field:
json
{ "success": true }

Usage example

typescript
import bridge from '@open-condo/bridge' await bridge.send('CondoWebAppPopHistoryState')