From 78f258495da7d8781d2937cca318dc864787f55b Mon Sep 17 00:00:00 2001 From: kPherox Date: Sun, 19 May 2019 23:25:38 +0900 Subject: [PATCH] Fixed returnValue of `get-timeline` --- src/main/Timeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Timeline.ts b/src/main/Timeline.ts index 9c8c2345..42b52025 100644 --- a/src/main/Timeline.ts +++ b/src/main/Timeline.ts @@ -27,7 +27,7 @@ export default class Timeline { public static ready() { ipcMain.on('add-timeline', (event: Event, name: string, type: string) => this.onAddTimeline(event, name, type)) - ipcMain.on('get-timeline', (event: Event, id: string) => event.returnValue = this.getTimeline(id)) + ipcMain.on('get-timeline', async (event: Event, id: string) => event.returnValue = await this.getTimeline(id)) ipcMain.on('no-auth-timeline', (event: Event, name: string) => this.onNoAuthTimeline(event, name))