mirror of
https://github.com/immich-app/immich.git
synced 2025-12-01 09:49:53 +09:00
chore: update deps (#14755)
This commit is contained in:
@@ -261,7 +261,7 @@ export const copyToClipboard = async (secret: string) => {
|
||||
};
|
||||
|
||||
export const makeSharedLinkUrl = (externalDomain: string, key: string) => {
|
||||
return new URL(`share/${key}`, externalDomain || window.location.origin).href;
|
||||
return new URL(`share/${key}`, externalDomain || globalThis.location.origin).href;
|
||||
};
|
||||
|
||||
export const oauth = {
|
||||
@@ -283,7 +283,7 @@ export const oauth = {
|
||||
try {
|
||||
const redirectUri = location.href.split('?')[0];
|
||||
const { url } = await startOAuth({ oAuthConfigDto: { redirectUri } });
|
||||
window.location.href = url;
|
||||
globalThis.location.href = url;
|
||||
return true;
|
||||
} catch (error) {
|
||||
handleError(error, $t('errors.unable_to_login_with_oauth'));
|
||||
|
||||
Reference in New Issue
Block a user