2
2
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:
Jia Hao 2016-02-23 17:13:39 +08:00
parent 6ca4e794cd
commit 14939800d9
3 changed files with 5 additions and 2 deletions

View File

@ -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
};
}

View File

@ -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) {

View File

@ -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) {