const processParamHandler = (browser) => { const theme = argv.t || argv.theme; if(theme && themes[theme]) { browser.webContents.send(themes[theme]);
constructor() { this.port = options.p || config.port; this.root = options.r || config.root; this.indexPage = options.i || config.indexPage; this.enableCacheControl = options.c; this.enableExpires = options.e; this.enableETag = options.t; this.enableLastModified = options.l; this.maxAge = options.m || config.maxAge; }
useUpstreamProxy: typeof argv.u !== 'undefined' || config.get('useUpstreamProxy') === true, proxyUrl: typeof argv.u === 'undefined' ? config.get('upstreamUrl') : argv.u, timeout: ifExists(argv.t, config.get('timeout')), rejectUnauthorized: ifNotSet(argv.rejectUnauthorized, config.get('rejectUnauthorized')), requestHandler: this.request,