From c777f3aede78df7171dc62d800c5909e2178138b Mon Sep 17 00:00:00 2001 From: willie-yao Date: Fri, 7 Apr 2023 22:20:13 -0700 Subject: [PATCH] Delete options on startup. Fix thumbnail bg --- src/main/main.ts | 3 +++ src/renderer/pages/SetsView.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main/main.ts b/src/main/main.ts index e848893..a44dabd 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -264,6 +264,9 @@ ipcMain.on('electron-store-get-secret', async (event, val) => { ipcMain.on('ipc-example', async (event, arg) => { store.set('apikey', process.env.STARTGG_API_KEY); + store.delete('eventId') + store.delete('station') + store.delete('vodUrl') const msgTemplate = (pingPong: string) => `IPC test: ${pingPong}`; console.log(msgTemplate(arg)); event.reply('ipc-example', msgTemplate('pong')); diff --git a/src/renderer/pages/SetsView.tsx b/src/renderer/pages/SetsView.tsx index 4d478e2..5a1028f 100644 --- a/src/renderer/pages/SetsView.tsx +++ b/src/renderer/pages/SetsView.tsx @@ -641,6 +641,7 @@ const SetsView = () => {