diff --git a/docs/api/web-request.md b/docs/api/web-request.md index 9f3e4347cc..b695cfbaf6 100644 --- a/docs/api/web-request.md +++ b/docs/api/web-request.md @@ -28,7 +28,7 @@ const { session } = require('electron') // Modify the user agent for all requests to the following urls. const filter = { - urls: ['https://*.github.com/*', '*://electron.github.io'] + urls: ['https://*.github.com/*', '*://electron.github.io/*'] } session.defaultSession.webRequest.onBeforeSendHeaders(filter, (details, callback) => {