1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 10:43:47 +00:00

Add to Electron

This commit is contained in:
Dmitry Yakimenko
2025-09-15 17:18:15 +02:00
parent 4aab9360d1
commit 700b0ae70a
2 changed files with 9 additions and 0 deletions

View File

@@ -18,5 +18,12 @@ export class ChromiumImporterService {
return await chromium_importer.importLogins(browser, profileId);
},
);
ipcMain.handle(
"chromium_importer.configureWindowsCryptoService",
async (event, adminExePath: string) => {
return await chromium_importer.configureWindowsCryptoService(adminExePath);
},
);
}
}

View File

@@ -7,6 +7,8 @@ const chromiumImporter = {
ipcRenderer.invoke("chromium_importer.getAvailableProfiles", browser),
importLogins: (browser: string, profileId: string): Promise<any[]> =>
ipcRenderer.invoke("chromium_importer.importLogins", browser, profileId),
configureWindowsCryptoService: (adminExePath: string): Promise<void> =>
ipcRenderer.invoke("chromium_importer.configureWindowsCryptoService", adminExePath),
};
export default {