Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 423 Bytes

File metadata and controls

18 lines (15 loc) · 423 Bytes
Sentry.init({
  dsn: "___PUBLIC_DSN___",
  integrations: [Sentry.feedbackIntegration({
    // Disable the injection of the default widget
    autoInject: false,
  })],
});

// Get the instance returned by `feedbackIntegration()`
const feedback = Sentry.getFeedback();

// Create and render the button
const widget = feedback?.createWidget();

// Later, when it's time to clean up:
widget.removeFromDom();