Skip to main content

initRootChaynsHistoryLayer

Callable


  • Initializes the root ChaynsHistoryLayer for the top window.

    • Reads window.location.pathname and window.history.state.
    • If __chaynsHistory is absent, replaces the current state with an empty tree.
    • Attaches the global popstate listener.
    • Returns the root ChaynsHistoryLayer instance.

    Call once at application startup (top window only).


    Parameters

    Returns InitRootChaynsHistoryLayerResult