mirror of
https://github.com/bitwarden/browser
synced 2026-02-03 10:13:31 +00:00
* Remove unused getInstalledBrowsers metthod * Run cargo fmt --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
17 lines
610 B
TypeScript
17 lines
610 B
TypeScript
import { ipcRenderer } from "electron";
|
|
|
|
import type { chromium_importer } from "@bitwarden/desktop-napi";
|
|
|
|
const chromiumImporter = {
|
|
getMetadata: (): Promise<Record<string, chromium_importer.NativeImporterMetadata>> =>
|
|
ipcRenderer.invoke("chromium_importer.getMetadata"),
|
|
getAvailableProfiles: (browser: string): Promise<any[]> =>
|
|
ipcRenderer.invoke("chromium_importer.getAvailableProfiles", browser),
|
|
importLogins: (browser: string, profileId: string): Promise<any[]> =>
|
|
ipcRenderer.invoke("chromium_importer.importLogins", browser, profileId),
|
|
};
|
|
|
|
export default {
|
|
chromiumImporter,
|
|
};
|