const options = {
types: ["intervention"],
buffered: true,
};
const observer = new ReportingObserver((reports, observer) => {
reports.forEach((report) => {
console.log(report);
console.log(JSON.stringify(report));
});
}, options);
// Start the observer
observer.observe();InterventionReport / notebook
InterventionReport
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.