Files
2024-02-15 17:01:50 +00:00

15 lines
459 B
TypeScript

import type {Location} from 'history';
import type {PlatformKey} from 'sentry/types';
export function didProjectOrEnvironmentChange(location1: Location, location2: Location) {
return (
location1.query.environment !== location2.query.environment ||
location1.query.project !== location2.query.project
);
}
export function isPlatformANRCompatible(platform?: PlatformKey) {
return platform === 'javascript-electron' || platform === 'android';
}