mirror of
https://github.com/bitwarden/browser
synced 2026-02-19 10:54:00 +00:00
revert preload base
This commit is contained in:
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user