karma-electron
Advanced tools
Comparing version 6.0.0 to 6.1.0
# karma-electron changelog | ||
6.1.0 - Added `--default-user-agent` via @makarandp0 in #39 | ||
6.0.0 - Updated source map support to pass through original source map fully | ||
@@ -3,0 +5,0 @@ |
@@ -18,2 +18,3 @@ // When we run into an uncaught exception, fail hard | ||
program.option('--show', 'Boolean to make the window visible', false); | ||
program.option('--default-user-agent', 'Boolean when spefified uses default user agent'); | ||
program.option('--url [url]', 'URL to load page at'); | ||
@@ -50,3 +51,5 @@ program.option('--require [filepath]', 'Path to main process file to require'); | ||
}); | ||
browserWindow.loadURL(program.url, { | ||
var loadUrlParams = {}; | ||
if (program.defaultUserAgent !== true) { | ||
// Set a custom User-Agent for better logging | ||
@@ -59,4 +62,5 @@ // https://github.com/atom/electron/blob/v0.36.9/docs/api/browser-window.md#winloadurlurl-options | ||
// Example: Electron 0.36.9 (Node.js 5.1.1) | ||
userAgent: 'Electron ' + process.versions.electron + ' (Node ' + process.versions.node + ')' | ||
}); | ||
loadUrlParams.userAgent = 'Electron ' + process.versions.electron + ' (Node ' + process.versions.node + ')'; | ||
} | ||
browserWindow.loadURL(program.url, loadUrlParams); | ||
}); |
{ | ||
"name": "karma-electron", | ||
"description": "Karma launcher and preprocessor for Electron", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"homepage": "https://github.com/twolfson/karma-electron", | ||
@@ -6,0 +6,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60940
861
38