electron-log
Advanced tools
Comparing version 4.3.5 to 4.4.0
{ | ||
"name": "electron-log", | ||
"version": "4.3.5", | ||
"version": "4.4.0", | ||
"description": "Just a very simple logging module for your Electron application", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -96,2 +96,5 @@ # electron-log | ||
If you don't use electron-log in the main process but want to show renderer | ||
logs in the console, add `require('electron-log')` somewhere in the main code. | ||
##### Options | ||
@@ -98,0 +101,0 @@ |
@@ -82,10 +82,2 @@ 'use strict'; | ||
function getRemote() { | ||
if (electron && electron.remote) { | ||
return electron.remote; | ||
} | ||
return null; | ||
} | ||
function getVersion() { | ||
@@ -127,3 +119,3 @@ var app = getApp(); | ||
if (app && app.isPackaged !== undefined) { | ||
return app.isPackaged; | ||
return !app.isPackaged; | ||
} | ||
@@ -169,7 +161,4 @@ | ||
} else if (process.type === 'renderer') { | ||
try { | ||
getRemote().require(moduleName); | ||
} catch (e) { | ||
// Can't be required. Webpack? | ||
} | ||
// Previously, it was electron.remote.require(moduleName) | ||
// but now the remote module is deprecated | ||
} | ||
@@ -176,0 +165,0 @@ } |
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
101432
37
3060
209
14