Skip to content

Commit

Permalink
refactor(frontend): Remove unused directives (#14085)
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu authored Jun 24, 2024
1 parent b95a045 commit 634764e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/frontend/src/components/MkCaptcha.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ async function requestRender() {
});
} else if (props.provider === 'mcaptcha' && props.instanceUrl && props.sitekey) {
const { default: Widget } = await import('@mcaptcha/vanilla-glue');
// @ts-expect-error avoid typecheck error
new Widget({
siteKey: {
instanceUrl: new URL(props.instanceUrl),
Expand Down
1 change: 0 additions & 1 deletion packages/frontend/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ import { I18n } from '@/scripts/i18n.js';
export const i18n = markRaw(new I18n<Locale>(locale));

export function updateI18n(newLocale: Locale) {
// @ts-expect-error -- private field
i18n.locale = newLocale;
}

0 comments on commit 634764e

Please sign in to comment.