🚨 Fixed linter errors
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as cookie from 'cookie';
|
|
||||||
import type { Handle } from '@sveltejs/kit';
|
import type { Handle } from '@sveltejs/kit';
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Handle} */
|
/** @type {import('@sveltejs/kit').Handle} */
|
||||||
|
|||||||
@@ -4,12 +4,8 @@
|
|||||||
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
-->
|
-->
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import * as Sentry from '@sentry/browser';
|
|
||||||
import { alertModal, navbarVisible } from '$lib/stores';
|
import { alertModal, navbarVisible } from '$lib/stores';
|
||||||
import { slide } from 'svelte/transition';
|
import { slide } from 'svelte/transition';
|
||||||
import { browser } from '$app/environment';
|
|
||||||
import Cookies from 'js-cookie';
|
|
||||||
import { getLocalization } from '$lib/i18n';
|
|
||||||
import Footer from '$lib/footer.svelte';
|
import Footer from '$lib/footer.svelte';
|
||||||
import VerifiedBadge from './verified_badge.svelte';
|
import VerifiedBadge from './verified_badge.svelte';
|
||||||
import StartWindow from './start_window.svelte';
|
import StartWindow from './start_window.svelte';
|
||||||
@@ -20,8 +16,6 @@
|
|||||||
import TotpComponent from './totp_component.svelte';
|
import TotpComponent from './totp_component.svelte';
|
||||||
import { browserSupportsWebAuthn } from '@simplewebauthn/browser';
|
import { browserSupportsWebAuthn } from '@simplewebauthn/browser';
|
||||||
|
|
||||||
const { t } = getLocalization();
|
|
||||||
|
|
||||||
navbarVisible.set(true);
|
navbarVisible.set(true);
|
||||||
|
|
||||||
export let data;
|
export let data;
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
}
|
}
|
||||||
let attResp;
|
let attResp;
|
||||||
const resp_data = await res1.json();
|
const resp_data = await res1.json();
|
||||||
|
// eslint-disable-next-line no-useless-catch
|
||||||
try {
|
try {
|
||||||
resp_data.authenticatorSelection.authenticatorAttachment = 'cross-platform';
|
resp_data.authenticatorSelection.authenticatorAttachment = 'cross-platform';
|
||||||
for (let i = 0; i++; i < resp_data.excludeCredentials.length) {
|
for (let i = 0; i++; i < resp_data.excludeCredentials.length) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
let already_downloaded = false;
|
let already_downloaded = false;
|
||||||
|
|
||||||
const download_code = (force: boolean = false) => {
|
const download_code = (force = false) => {
|
||||||
if (already_downloaded && !force) {
|
if (already_downloaded && !force) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user