1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +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

@@ -96,8 +96,8 @@ export class CliPlatformUtilsService implements PlatformUtilsService {
throw new Error('Not implemented.');
}
getApplicationVersion(): string {
return this.packageJson.version;
getApplicationVersion(): Promise<string> {
return Promise.resolve(this.packageJson.version);
}
supportsWebAuthn(win: Window) {
@@ -147,7 +147,7 @@ export class CliPlatformUtilsService implements PlatformUtilsService {
}
getDefaultSystemTheme() {
return 'light' as 'light' | 'dark';
return Promise.resolve('light' as 'light' | 'dark');
}
onDefaultSystemThemeChange() {