doc: make comment more generic to secure it against architectural changes

This commit is contained in:
Xymorot 2019-10-03 03:02:04 +02:00
parent 514684dc14
commit c769e06366
1 changed files with 1 additions and 1 deletions

View File

@ -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({