@plasosdk/plaso-electron-sdk 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/js/render.js +2 -2
  2. package/package.json +1 -1
package/js/render.js CHANGED
@@ -75,7 +75,7 @@ function createClassWindow(classWindowProps) {
75
75
  return ERROR_CODE.CLASS_WINODW_GREATER_THAN_ONE;
76
76
  }
77
77
 
78
- const isElectron = !!process.versions['electron'];
78
+ const isElectron = !!process?.versions?.['electron'];
79
79
  if (isElectron) {
80
80
  try {
81
81
  const appProxy = require('@plasosdk/winproxy');
@@ -141,7 +141,7 @@ function createClassWindow(classWindowProps) {
141
141
  PlasoALDPath: PlasoALD ?? '',
142
142
  clientType: 'electron',
143
143
  openerId: webContents.id,
144
- memoryConfigKey: classInfo.loginName ?? '',
144
+ memoryConfigKey: classInfo.loginName ?? classOptions.loginName ?? '',
145
145
  maximized: autoMaximized,
146
146
  fullScreenable,
147
147
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasosdk/plaso-electron-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {