mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
Allow manual override of flash plugin path
This commit is contained in:
parent
6ca4e794cd
commit
14939800d9
@ -51,7 +51,8 @@ function selectAppArgs(options) {
|
||||
showMenuBar: options.showMenuBar,
|
||||
userAgent: options.userAgent,
|
||||
nativefierVersion: options.nativefierVersion,
|
||||
insecure: options.insecure
|
||||
insecure: options.insecure,
|
||||
flashPluginDir: options.flashPluginDir
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,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('--insecure', 'ignore certificate related errors')
|
||||
.option('--flash <value>', 'path to Chrome flash plugin, find it in `Chrome://plugins`')
|
||||
.parse(process.argv);
|
||||
|
||||
if (!process.argv.slice(2).length) {
|
||||
|
@ -46,7 +46,8 @@ function optionsFactory(inpOptions, callback) {
|
||||
height: inpOptions.height || 800,
|
||||
showMenuBar: inpOptions.showMenuBar || false,
|
||||
userAgent: inpOptions.userAgent || getFakeUserAgent(),
|
||||
insecure: inpOptions.insecure || false
|
||||
insecure: inpOptions.insecure || false,
|
||||
flashPluginDir: inpOptions.flash || null
|
||||
};
|
||||
|
||||
if (inpOptions.honest) {
|
||||
|
Loading…
Reference in New Issue
Block a user