feat: add net.online / net.isOnline() (#21004)
This commit is contained in:
parent
1ef803d2ea
commit
df1432a315
5 changed files with 47 additions and 1 deletions
1
typings/internal-ambient.d.ts
vendored
1
typings/internal-ambient.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue