1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

Remove electron remote (#332)

* Replace remote calls with ipcRenderer.invoke.
This commit is contained in:
Oscar Hinton
2021-04-07 19:42:06 +02:00
committed by GitHub
parent 728e40fbfa
commit 78d40d9f18
9 changed files with 118 additions and 26 deletions

View File

@@ -20,7 +20,7 @@ export abstract class PlatformUtilsService {
lockTimeout: () => number;
launchUri: (uri: string, options?: any) => void;
saveFile: (win: Window, blobData: any, blobOptions: any, fileName: string) => void;
getApplicationVersion: () => string;
getApplicationVersion: () => Promise<string>;
supportsWebAuthn: (win: Window) => boolean;
supportsDuo: () => boolean;
showToast: (type: 'error' | 'success' | 'warning' | 'info', title: string, text: string | string[],
@@ -34,7 +34,7 @@ export abstract class PlatformUtilsService {
readFromClipboard: (options?: any) => Promise<string>;
supportsBiometric: () => Promise<boolean>;
authenticateBiometric: () => Promise<boolean>;
getDefaultSystemTheme: () => 'light' | 'dark';
getDefaultSystemTheme: () => Promise<'light' | 'dark'>;
onDefaultSystemThemeChange: (callback: ((theme: 'light' | 'dark') => unknown)) => unknown;
supportsSecureStorage: () => boolean;
}