From 69fd5a0108004d5a8fd738116de4b9a7a3937ba5 Mon Sep 17 00:00:00 2001 From: Eyo Okon Eyo Date: Fri, 9 Aug 2024 16:43:53 +0200 Subject: [PATCH] use same chromium path method is invoked with --- x-pack/plugins/reporting/server/browsers/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/reporting/server/browsers/install.ts b/x-pack/plugins/reporting/server/browsers/install.ts index 22f9ec776210e..f672e842af3bd 100644 --- a/x-pack/plugins/reporting/server/browsers/install.ts +++ b/x-pack/plugins/reporting/server/browsers/install.ts @@ -35,7 +35,7 @@ export function installBrowser( } const backgroundInstall = async () => { - const binaryPath = paths.getBinaryPath(pkg, path.resolve(__dirname, '../../chromium')); + const binaryPath = paths.getBinaryPath(pkg, chromiumPath); const binaryChecksum = await sha256(binaryPath).catch(() => ''); if (binaryChecksum !== pkg.binaryChecksum) {