1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-30 16:23:53 +00:00

revert preload base

This commit is contained in:
Derek Nance
2026-01-14 09:19:45 -06:00
parent 9f280d8125
commit 287d0fd9fd
3 changed files with 14 additions and 17 deletions

View File

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

View File

@@ -1,6 +1,6 @@
import { contextBridge } from "electron";
import { ipc as ossIpc } from "@bitwarden/desktop/preload.base";
import { ipc as ossIpc } from "@bitwarden/desktop/preload";
/**
* Bitwarden Preload script.
@@ -12,6 +12,6 @@ import { ipc as ossIpc } from "@bitwarden/desktop/preload.base";
export const ipc = {
...ossIpc,
};
} as const;
contextBridge.exposeInMainWorld("ipc", ipc);