Frontend Modules


Frontend Modules / mt-report-banner / showReportBanners

Function: showReportBanners()

showReportBanners(container, reportUrl, taskId?): Promise<void>

Defined in: js/utils/mt-report-banner.ts:53

Fetches (and, server-side, consumes) any queued reports and shows one aggregate banner per report - not the per-page breakdown. Safe to call redundantly: the report endpoint is a destructive read, so a report already consumed by another trigger just comes back empty here.

Parameters

container

Element

The banner placeholder to append into

reportUrl

string

The report endpoint to fetch, if known

taskId?

string

The task whose report to show, if the caller watched a specific task finish - otherwise every report still queued is shown

Returns

Promise<void>