mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
chore: update deps (#14755)
This commit is contained in:
@@ -9,7 +9,7 @@ export type AssetGridRouteSearchParams = {
|
||||
at: string | null | undefined;
|
||||
};
|
||||
export const isExternalUrl = (url: string): boolean => {
|
||||
return new URL(url, window.location.href).origin !== window.location.origin;
|
||||
return new URL(url, globalThis.location.href).origin !== globalThis.location.origin;
|
||||
};
|
||||
|
||||
export const isPhotosRoute = (route?: string | null) => !!route?.startsWith('/(user)/photos/[[assetId=id]]');
|
||||
|
||||
Reference in New Issue
Block a user