mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
This commit is contained in:
parent
454ab1e7bd
commit
bbb513d420
@ -38,6 +38,10 @@ if (appArgs.ignoreCertificate) {
|
||||
app.commandLine.appendSwitch('ignore-certificate-errors');
|
||||
}
|
||||
|
||||
if (appArgs.disableGpu) {
|
||||
app.disableHardwareAcceleration();
|
||||
}
|
||||
|
||||
if (appArgs.ignoreGpuBlacklist) {
|
||||
app.commandLine.appendSwitch('ignore-gpu-blacklist');
|
||||
}
|
||||
|
@ -48,6 +48,7 @@
|
||||
- [[basic-auth-username]](#basic-auth-username)
|
||||
- [[basic-auth-password]](#basic-auth-username)
|
||||
- [[always-on-top]](#always-on-top)
|
||||
- [[disable-gpu]](#disable-gpu)
|
||||
- [Programmatic API](#programmatic-api)
|
||||
|
||||
## Command Line
|
||||
@ -298,6 +299,13 @@ If this flag is passed, it will not override the user agent.
|
||||
```
|
||||
Forces the packaged app to ignore certificate errors.
|
||||
|
||||
#### [disable-gpu]
|
||||
|
||||
```
|
||||
--disable-gpu
|
||||
```
|
||||
Disable hardware acceleration for the packaged application.
|
||||
|
||||
#### [ignore-gpu-blacklist]
|
||||
|
||||
```
|
||||
|
@ -29,6 +29,7 @@ function selectAppArgs(options) {
|
||||
userAgent: options.userAgent,
|
||||
nativefierVersion: options.nativefierVersion,
|
||||
ignoreCertificate: options.ignoreCertificate,
|
||||
disableGpu: options.disableGpu,
|
||||
ignoreGpuBlacklist: options.ignoreGpuBlacklist,
|
||||
enableEs3Apis: options.enableEs3Apis,
|
||||
insecure: options.insecure,
|
||||
|
@ -68,6 +68,7 @@ if (require.main === module) {
|
||||
.option('-u, --user-agent <value>', 'set the user agent string for the app')
|
||||
.option('--honest', 'prevent the nativefied app from changing the user agent string to masquerade as a regular chrome browser')
|
||||
.option('--ignore-certificate', 'ignore certificate related errors')
|
||||
.option('--disable-gpu', 'disable hardware acceleration')
|
||||
.option('--ignore-gpu-blacklist', 'allow WebGl apps to work on non supported graphics cards')
|
||||
.option('--enable-es3-apis', 'force activation of WebGl 2.0')
|
||||
.option('--insecure', 'enable loading of insecure content, defaults to false')
|
||||
|
@ -38,6 +38,7 @@ export default function (inpOptions) {
|
||||
fastQuit: inpOptions.fastQuit || false,
|
||||
userAgent: inpOptions.userAgent,
|
||||
ignoreCertificate: inpOptions.ignoreCertificate || false,
|
||||
disableGpu: inpOptions.disableGpu || false,
|
||||
ignoreGpuBlacklist: inpOptions.ignoreGpuBlacklist || false,
|
||||
enableEs3Apis: inpOptions.enableEs3Apis || false,
|
||||
insecure: inpOptions.insecure || false,
|
||||
|
Loading…
Reference in New Issue
Block a user