Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

334 B
Raw Blame
/**
 * Handle for lazy-loading Sentry
 * So we never load Sentry unless the user has explicitly enabled error reporting
 */

let sentryInstance = null;

export const setSentryInstance = (instance) => {
  sentryInstance = instance;
};

export const reportError = (msg) => {
  if (sentryInstance) sentryInstance.captureMessage(msg);
};