signal-desktop/ts/context/index.ts
2021-09-23 17:49:05 -07:00

21 lines
497 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { Bytes } from './Bytes';
import { Crypto } from './Crypto';
import {
createNativeThemeListener,
MinimalIPC,
} from './createNativeThemeListener';
export class Context {
public readonly bytes = new Bytes();
public readonly crypto = new Crypto();
public readonly nativeThemeListener;
constructor(ipc: MinimalIPC) {
this.nativeThemeListener = createNativeThemeListener(ipc, window);
}
}