Skip to content

Commit

Permalink
runfix: rename secretsCrypto to systemCrypto to support broken intern…
Browse files Browse the repository at this point in the history
…al clients (#6094)
  • Loading branch information
PatrykBuniX authored Oct 19, 2022
1 parent 95eeb3a commit df9dfbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion electron/src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ declare global {
};
environment: typeof EnvironmentUtil;
openGraphAsync(url: string): Promise<OpenGraphResult>;
secretsCrypto?: {
systemCrypto?: {
decrypt: (value: Uint8Array) => Promise<Uint8Array>;
encrypt: (encrypted: Uint8Array) => Promise<Uint8Array>;
};
Expand Down
2 changes: 1 addition & 1 deletion electron/src/preload/preload-webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ process.once('loaded', () => {
global.desktopCapturer = {
getDesktopSources: opts => ipcRenderer.invoke(EVENT_TYPE.ACTION.GET_DESKTOP_SOURCES, opts),
};
global.secretsCrypto = {
global.systemCrypto = {
decrypt: async (encrypted: Uint8Array): Promise<Uint8Array> => {
const plainText = await ipcRenderer.invoke(EVENT_TYPE.ACTION.DECRYPT, encrypted);
return Decoder.fromBase64(plainText).asBytes;
Expand Down

0 comments on commit df9dfbf

Please sign in to comment.