mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
15 lines
459 B
TypeScript
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';
|
|
}
|