mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 17:23:21 +03:00
chore: update deps (#14755)
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
let loading = $state(true);
|
||||
|
||||
onMount(async () => {
|
||||
if (oauth.isCallback(window.location)) {
|
||||
if (oauth.isCallback(globalThis.location)) {
|
||||
try {
|
||||
loading = true;
|
||||
|
||||
user = await oauth.link(window.location);
|
||||
user = await oauth.link(globalThis.location);
|
||||
|
||||
notificationController.show({
|
||||
message: $t('linked_oauth_account'),
|
||||
@@ -64,7 +64,7 @@
|
||||
{#if user.oauthId}
|
||||
<Button size="sm" onclick={() => handleUnlink()}>{$t('unlink_oauth')}</Button>
|
||||
{:else}
|
||||
<Button size="sm" onclick={() => oauth.authorize(window.location)}>{$t('link_to_oauth')}</Button>
|
||||
<Button size="sm" onclick={() => oauth.authorize(globalThis.location)}>{$t('link_to_oauth')}</Button>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user