mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
test: fix types in chromium-spec (#48943)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user