1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-24 08:33:29 +00:00

preload base

This reverts commit 287d0fd9fd.
This commit is contained in:
Derek Nance
2026-02-11 16:08:48 -06:00
parent 33eb7361f0
commit cae5e9817e
3 changed files with 16 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
import tools from "./app/tools/preload";
import auth from "./auth/preload";
import autofill from "./autofill/preload";
import keyManagement from "./key-management/preload";
import platform from "./platform/preload";
export const ipc = {
auth,
autofill,
platform,
keyManagement,
tools,
} as const;

View File

@@ -1,10 +1,6 @@
import { contextBridge } from "electron";
import tools from "./app/tools/preload";
import auth from "./auth/preload";
import autofill from "./autofill/preload";
import keyManagement from "./key-management/preload";
import platform from "./platform/preload";
import { ipc } from "./preload.base";
/**
* Bitwarden Preload script.
@@ -17,12 +13,6 @@ import platform from "./platform/preload";
*/
// Each team owns a subspace of the `ipc` global variable in the renderer.
export const ipc = {
auth,
autofill,
platform,
keyManagement,
tools,
};
export { ipc };
contextBridge.exposeInMainWorld("ipc", ipc);

View File

@@ -1,6 +1,6 @@
import { contextBridge } from "electron";
import { ipc as ossIpc } from "@bitwarden/desktop/preload";
import { ipc as ossIpc } from "@bitwarden/desktop/preload.base";
/**
* Bitwarden Preload script.