doc: make comment more generic to secure it against architectural changes
This commit is contained in:
parent
514684dc14
commit
c769e06366
|
@ -2,7 +2,7 @@ import { session } from 'electron';
|
|||
import OnHeadersReceivedDetails = Electron.OnHeadersReceivedDetails;
|
||||
|
||||
export function setHeaders(): void {
|
||||
// these headers only work on web requests, file:// protocol is handled via meta tags in index.html
|
||||
// these headers only work on web requests, file:// protocol is handled via meta tags in the html
|
||||
session.defaultSession.webRequest.onHeadersReceived(
|
||||
(details: OnHeadersReceivedDetails, callback: (response: {}) => void) => {
|
||||
callback({
|
||||
|
|
Loading…
Reference in New Issue