From b02c2620956150c09172d0190f3585d64e194dbf Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Wed, 15 Nov 2023 09:13:26 +0900 Subject: [PATCH] test: add sudo --- .github/workflows/app-test.yml | 2 +- src/preload/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/app-test.yml b/.github/workflows/app-test.yml index 531d6ae8..fa3f95bb 100644 --- a/.github/workflows/app-test.yml +++ b/.github/workflows/app-test.yml @@ -32,7 +32,7 @@ jobs: - name: Install xvfb if: runner.os == 'Linux' run: | - apt install -y -q --no-install-recommends xvfb + sudo apt install -y -q --no-install-recommends xvfb - name: Setup NodeJS ${{ matrix.node_version }} uses: actions/setup-node@v3 diff --git a/src/preload/index.ts b/src/preload/index.ts index 8fc5f6f2..f5cb5839 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -24,6 +24,7 @@ contextBridge.exposeInMainWorld('mainApi', { const result = await ipcRenderer.invoke.apply(null, [channel, ...data]) return result } + throw new Error(`Invoke failed: Unknown ipc channel name: ${channel}`) } })