Sticker Creator Window
This commit is contained in:
14
ts/windows/sticker-creator/preload.ts
Normal file
14
ts/windows/sticker-creator/preload.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// 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)
|
||||
);
|
Reference in New Issue
Block a user