utils.tsx 459 B

1234567891011121314
  1. import type {Location} from 'history';
  2. import type {PlatformKey} from 'sentry/types';
  3. export function didProjectOrEnvironmentChange(location1: Location, location2: Location) {
  4. return (
  5. location1.query.environment !== location2.query.environment ||
  6. location1.query.project !== location2.query.project
  7. );
  8. }
  9. export function isPlatformANRCompatible(platform?: PlatformKey) {
  10. return platform === 'javascript-electron' || platform === 'android';
  11. }