@/utils#inElectron TypeScript Examples
The following examples show how to use
@/utils#inElectron.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ElectronRequestClient.ts From electron-request with MIT License | 5 votes |
private readonly electronAdapter = inElectron ? new ElectronAdapter() : null;
Example #2
Source File: index.ts From electron-request with MIT License | 5 votes |
constructor(constructorOptions: RequestConstructorOptions) {
const options = getRequestOptions(constructorOptions);
this.client =
!options.useNative && inElectron ? new ElectronRequest(options) : new NativeRequest(options);
}