electron-log
Advanced tools
Comparing version 4.0.5 to 4.0.6
{ | ||
"name": "electron-log", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "Just a very simple logging module for your Electron application", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -122,5 +122,10 @@ 'use strict'; | ||
getApp().on('web-contents-created', function (e, contents) { | ||
contents.executeJavaScript( | ||
'try {require("' + moduleName + '")} catch(e){}' | ||
var promise = contents.executeJavaScript( | ||
'try {require("' + moduleName + '")} catch(e){}; void 0;' | ||
); | ||
// Do nothing on error, just prevent Unhandled rejection | ||
if (promise && typeof promise.catch === 'function') { | ||
promise.catch(function () {}); | ||
} | ||
}); | ||
@@ -127,0 +132,0 @@ } else if (process.type === 'renderer') { |
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
55173
1647