signal-desktop/ts/windows/sticker-creator/preload.ts

15 lines
405 B
TypeScript
Raw Normal View History

2023-04-20 15:59:17 +00:00
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { contextBridge, ipcRenderer } from 'electron';
contextBridge.exposeInMainWorld('getCredentials', async () =>
ipcRenderer.invoke('get-art-creator-auth')
);
contextBridge.exposeInMainWorld(
'installStickerPack',
(packId: string, key: string) =>
ipcRenderer.invoke('install-sticker-pack', packId, key)
);