Electron api make width of screen1/29/2024 If embed is specified, content is stored inline the HAR file as per HAR specification. If attach is specified, resources are persisted as separate files or entries in the ZIP archive. If omit is specified, content is not persisted. Optional setting to control resource content management. Deprecated, use content policy instead.Ĭontent "omit"|"embed"|"attach" (optional) Optional setting to control whether to omit request content from the HAR. RecordHar Object (optional) Added in: v1.12 # Whether to emulate network being offline. Offline boolean (optional) Added in: v1.12 # Learn more about emulation in our emulation guide. Locale will affect navigator.language value, Accept-Language request header value as well as number and date formatting rules. Specify user locale, for example en-GB, de-DE, etc. Locale string (optional) Added in: v1.12 # Whether to ignore HTTPS errors when sending network requests. IgnoreHTTPSErrors boolean (optional) Added in: v1.12 # If no origin is specified, the username and password are sent to any servers upon unauthorized responses. Restrain sending http credentials on specific origin (scheme://host:port).Ĭredentials for HTTP authentication. HttpCredentials Object (optional) Added in: v1.12 # Geolocation Object (optional) Added in: v1.12 # If not specified, launches the default Electron executable installed in this package, located at node_modules/.bin/electron.ĮxtraHTTPHeaders Object (optional) Added in: v1.12 #Īn object containing additional HTTP headers to be sent with every request. Specifies environment variables that will be visible to Electron. Defaults to 'light'.Ĭurrent working directory to launch application from. Passing null resets emulation to system defaults. See page.emulateMedia() for more details. Toggles bypassing page's Content-Security-Policy.ĬolorScheme null|"light"|"dark"|"no-preference" (optional) Added in: v1.12 #Įmulates 'prefers-colors-scheme' media feature, supported values are 'light', 'dark', 'no-preference'. You typically pass the main script name here.īypassCSP boolean (optional) Added in: v1.12 # Defaults to true where all the downloads are accepted.Īdditional arguments to pass to the application when launching. Whether to automatically download all the attachments. AcceptDownloads boolean (optional) Added in: v1.12 #
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |