mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: remove implicit 'any' and 'Object' types from the docs (#19630)
* docs: remove implicit 'any' and 'Object' types from the docs * docs: more docs improvements, remove all remaining empty interfaces * chore: update tests for better types
This commit is contained in:
@@ -129,7 +129,7 @@ app.on('ready', () => {
|
||||
console.log('Debugger detached due to : ', reason)
|
||||
})
|
||||
|
||||
mainWindow.webContents.debugger.on('message', function (event, method, params) {
|
||||
mainWindow.webContents.debugger.on('message', function (event, method, params: any) {
|
||||
if (method === 'Network.requestWillBeSent') {
|
||||
if (params.request.url === 'https://www.github.com') {
|
||||
mainWindow.webContents.debugger.detach()
|
||||
|
||||
Reference in New Issue
Block a user