test: fix types in chromium-spec (#48943)

This commit is contained in:
Shelley Vohr
2025-11-13 21:25:09 +01:00
committed by GitHub
parent 05b9a5bfc7
commit 40b6738735

View File

@@ -915,7 +915,7 @@ describe('chromium features', () => {
if (action !== 'none') {
// Make the PermissionRequestHandler behave according to action variable passed for this test
testSession.setPermissionRequestHandler((_wc, permission, callback) => {
testSession.setPermissionRequestHandler((_wc: Electron.WebContents, permission: string, callback: (allow: boolean) => void) => {
if (permission === 'geolocation') {
if (action === 'allow') callback(true);
else if (action === 'deny') callback(false);