---
title: mount
description: >-
  Browser script entry: answer `data-svartz-report` buttons, and add **Report**
  to a note's page actions. The build doesn't know a host app's `paths.base`, so
  the routes get the deployment base here, from `context`.
updated_at: '2026-11-19T12:17:32+01:00'
created_at: '2026-11-19T08:16:38+01:00'
symbol:
  kind: function
  name: mount
  signatures:
    - >-
      mount(_pathname: string, options: BrowserOptions, options?:
      [[reference/api/core/BrowserScriptContext|BrowserScriptContext]]): () =>
      void
  parameters:
    - name: _pathname
      type: string
    - name: options
      type: BrowserOptions
    - name: options
      type: '[[reference/api/core/BrowserScriptContext|BrowserScriptContext]]'
      optional: true
  returns:
    type: () => void
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-moderation/src/browser.ts#L241
---

# mount

A host page mounts this once per note it shows, each with its vault's options and `context.note`: each instance then
answers only the buttons in or beside its own note, so a report goes to the vault that showed it, and leaves the page
actions, which belong to no one note, alone. On a theme page it answers every button.
