Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(preview): restore recording and macOS rendering after Electron 43 #9001

MergedStiensWout(GitHub profile, opens in a new tab)merged 17 commits intomain fromrefs/pull/9001/headmerged by juliusmarminge View on GitHub

Showing 11 changed files with 5 additions and 10 deletions (loading 10).

x
0 of 11 viewed, 11 left
5 additions and 10 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -11,7 +11,6 @@
DesktopPreviewConfigInputSchema,
DesktopPreviewNavigateInputSchema,
DesktopPreviewRecordingArtifactSchema,
- DesktopPreviewRecordingSourceSchema,
DesktopPreviewRecordingSaveInputSchema,
DesktopPreviewRegisterWebviewInputSchema,
DesktopPreviewScreenshotArtifactSchema,
@@ -174,15 +173,11 @@
"desktop.ipc.preview.cancelPickElement",
(manager, tabId) => manager.cancelPickElement(tabId),
-export const startRecording = DesktopIpc.makeIpcMethod({
- channel: IpcChannels.PREVIEW_RECORDING_START_CHANNEL,
- payload: DesktopPreviewTabInputSchema,
- result: DesktopPreviewRecordingSourceSchema,
- handler: Effect.fn("desktop.ipc.preview.startRecording")(function* ({ tabId }) {
- const manager = yield* PreviewManager.PreviewManager;
- return yield* manager.startRecording(tabId);
- }),
-});
+export const startRecording = tabMethod(
+ IpcChannels.PREVIEW_RECORDING_START_CHANNEL,
+ "desktop.ipc.preview.startRecording",
+ (manager, tabId) => manager.startRecording(tabId),
+);
export const stopRecording = tabMethod(
IpcChannels.PREVIEW_RECORDING_STOP_CHANNEL,
"desktop.ipc.preview.stopRecording",