Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix duplicate export warning (#2004)

Leendert de Borsta34fbdcf3f07
diff --git a/apps/browser-extension/src/entrypoints/popup/pages/settings/AutofillSettings.tsx b/apps/browser-extension/src/entrypoints/popup/pages/settings/AutofillSettings.tsx
index 82edebea9..ae7cca022 100644
--- a/apps/browser-extension/src/entrypoints/popup/pages/settings/AutofillSettings.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/pages/settings/AutofillSettings.tsx
@@ -4,7 +4,8 @@ import { useTranslation } from 'react-i18next';
import PageTitle from '@/entrypoints/popup/components/PageTitle';
import { useLoading } from '@/entrypoints/popup/context/LoadingContext';
-import { AutofillMatchingMode, LocalPreferencesService } from '@/utils/LocalPreferencesService';
+import { LocalPreferencesService } from '@/utils/LocalPreferencesService';
+import { AutofillMatchingMode } from '@/utils/RustCore';
/**
* Autofill settings type.
diff --git a/apps/browser-extension/src/utils/LocalPreferencesService.ts b/apps/browser-extension/src/utils/LocalPreferencesService.ts
index ef709d7cc..625cfe493 100644
--- a/apps/browser-extension/src/utils/LocalPreferencesService.ts
+++ b/apps/browser-extension/src/utils/LocalPreferencesService.ts
@@ -1,3 +1,5 @@
+import { AutofillMatchingMode } from '@/utils/RustCore';
+
import { storage } from '#imports';
/*
@@ -48,15 +50,6 @@ const KEYS = {
PASSWORD_UNLOCK_FAILED_ATTEMPTS: 'local:password_unlock_failed_attempts',
} as const;
-/**
- * Autofill matching mode options.
- */
-export enum AutofillMatchingMode {
- DEFAULT = 'default',
- URL_SUBDOMAIN = 'url_subdomain',
- URL_EXACT = 'url_exact',
-}
-
/**
* Service for managing user preferences that are stored locally (not in the vault).
* Provides typed getters/setters with sensible defaults for all local storage settings.