summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-20 16:07:52 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-20 16:07:52 +0900
commit7f534a41a65ec93a0eafd02796b782309b3d0702 (patch)
tree56a7ba9d8fd48be173b4496db6dbd8f384dc7a81 /packages/frontend/src/pages
parentUpdate eslint.config.js (diff)
downloadmisskey-7f534a41a65ec93a0eafd02796b782309b3d0702.tar.gz
misskey-7f534a41a65ec93a0eafd02796b782309b3d0702.tar.bz2
misskey-7f534a41a65ec93a0eafd02796b782309b3d0702.zip
fix lint
Diffstat (limited to 'packages/frontend/src/pages')
-rw-r--r--packages/frontend/src/pages/auth.vue2
-rw-r--r--packages/frontend/src/pages/lookup.vue6
-rw-r--r--packages/frontend/src/pages/miauth.vue2
-rw-r--r--packages/frontend/src/pages/share.vue4
4 files changed, 7 insertions, 7 deletions
diff --git a/packages/frontend/src/pages/auth.vue b/packages/frontend/src/pages/auth.vue
index e4699379f0..0dcdc5e9cb 100644
--- a/packages/frontend/src/pages/auth.vue
+++ b/packages/frontend/src/pages/auth.vue
@@ -64,7 +64,7 @@ function accepted() {
if (session.value && session.value.app.callbackUrl) {
const url = new URL(session.value.app.callbackUrl);
if (['javascript:', 'file:', 'data:', 'mailto:', 'tel:', 'vbscript:'].includes(url.protocol)) throw new Error('invalid url');
- location.href = `${session.value.app.callbackUrl}?token=${session.value.token}`;
+ window.location.href = `${session.value.app.callbackUrl}?token=${session.value.token}`;
}
}
diff --git a/packages/frontend/src/pages/lookup.vue b/packages/frontend/src/pages/lookup.vue
index fafad8af4a..4eb4808048 100644
--- a/packages/frontend/src/pages/lookup.vue
+++ b/packages/frontend/src/pages/lookup.vue
@@ -31,7 +31,7 @@ import MkButton from '@/components/MkButton.vue';
const state = ref<'fetching' | 'done'>('fetching');
function fetch() {
- const params = new URL(location.href).searchParams;
+ const params = new URL(window.location.href).searchParams;
// acctのほうはdeprecated
let uri = params.get('uri') ?? params.get('acct');
@@ -76,12 +76,12 @@ function close(): void {
// 閉じなければ100ms後タイムラインに
window.setTimeout(() => {
- location.href = '/';
+ window.location.href = '/';
}, 100);
}
function goToMisskey(): void {
- location.href = '/';
+ window.location.href = '/';
}
fetch();
diff --git a/packages/frontend/src/pages/miauth.vue b/packages/frontend/src/pages/miauth.vue
index 687315e9b7..e809395848 100644
--- a/packages/frontend/src/pages/miauth.vue
+++ b/packages/frontend/src/pages/miauth.vue
@@ -61,7 +61,7 @@ async function onAccept(token: string) {
const cbUrl = new URL(props.callback);
if (['javascript:', 'file:', 'data:', 'mailto:', 'tel:', 'vbscript:'].includes(cbUrl.protocol)) throw new Error('invalid url');
cbUrl.searchParams.set('session', props.session);
- location.href = cbUrl.toString();
+ window.location.href = cbUrl.toString();
} else {
authRoot.value?.showUI('success');
}
diff --git a/packages/frontend/src/pages/share.vue b/packages/frontend/src/pages/share.vue
index abd84c8590..f88f9ebc1e 100644
--- a/packages/frontend/src/pages/share.vue
+++ b/packages/frontend/src/pages/share.vue
@@ -182,12 +182,12 @@ function close(): void {
// 閉じなければ100ms後タイムラインに
window.setTimeout(() => {
- location.href = '/';
+ window.location.href = '/';
}, 100);
}
function goToMisskey(): void {
- location.href = '/';
+ window.location.href = '/';
}
function onPosted(): void {