feat: add net.online / net.isOnline() (#21004)

This commit is contained in:
Milan Burda 2020-10-21 04:55:06 +02:00 committed by GitHub
parent 1ef803d2ea
commit df1432a315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 1 deletions

View file

@ -194,6 +194,7 @@ declare namespace NodeJS {
createPair(): { port1: Electron.MessagePortMain, port2: Electron.MessagePortMain };
};
_linkedBinding(name: 'electron_browser_net'): {
isOnline(): boolean;
isValidHeaderName: (headerName: string) => boolean;
isValidHeaderValue: (headerValue: string) => boolean;
Net: any;