@plasosdk/plaso-electron-sdk 1.2.10 → 1.2.13-beta.0
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.
- package/README.md +665 -665
- package/index.html +225 -225
- package/index.js +6 -6
- package/js/macro.js +81 -81
- package/js/main.js +32 -32
- package/js/render.js +400 -400
- package/js/util.js +109 -109
- package/package.json +26 -26
- package/scripts/downloadPrebuild.js +183 -183
- package/scripts/getConfig.js +16 -16
- package/scripts/logger.js +138 -138
package/js/main.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
const isElectron = !!process.versions['electron'];
|
|
2
|
-
if (isElectron) {
|
|
3
|
-
try {
|
|
4
|
-
require('@plasosdk/winproxy');
|
|
5
|
-
require('@plasosdk/screenshot');
|
|
6
|
-
require('@plasosdk/rtmpplayer');
|
|
7
|
-
|
|
8
|
-
const { RENDER_TO_MAIN_MESG_TYPE } = require('./macro');
|
|
9
|
-
|
|
10
|
-
const { app, ipcMain, crashReporter } = require('electron');
|
|
11
|
-
|
|
12
|
-
// 首次添加此开关是为了解决一些GPU导致的渲染问题的,比如进课堂白屏,历史课堂播放进度条不动。
|
|
13
|
-
// 支持虚拟声卡需要添加此开关
|
|
14
|
-
app.commandLine.appendSwitch('--no-sandbox');
|
|
15
|
-
|
|
16
|
-
ipcMain.on(RENDER_TO_MAIN_MESG_TYPE.PLASO_INIT_LOG_PATH, function (e, logFilePath) {
|
|
17
|
-
app.setPath('crashDumps', logFilePath);
|
|
18
|
-
crashReporter.start({ submitURL: '', uploadToServer: false });
|
|
19
|
-
});
|
|
20
|
-
} catch (e) {
|
|
21
|
-
console.error(e);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function initRemoteMain(remoteMain) {
|
|
26
|
-
const { initRemoteMain } = require('@plasosdk/winproxy');
|
|
27
|
-
if (remoteMain) initRemoteMain(remoteMain);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
module.exports = {
|
|
31
|
-
initRemoteMain: initRemoteMain,
|
|
32
|
-
};
|
|
1
|
+
const isElectron = !!process.versions['electron'];
|
|
2
|
+
if (isElectron) {
|
|
3
|
+
try {
|
|
4
|
+
require('@plasosdk/winproxy');
|
|
5
|
+
require('@plasosdk/screenshot');
|
|
6
|
+
require('@plasosdk/rtmpplayer');
|
|
7
|
+
|
|
8
|
+
const { RENDER_TO_MAIN_MESG_TYPE } = require('./macro');
|
|
9
|
+
|
|
10
|
+
const { app, ipcMain, crashReporter } = require('electron');
|
|
11
|
+
|
|
12
|
+
// 首次添加此开关是为了解决一些GPU导致的渲染问题的,比如进课堂白屏,历史课堂播放进度条不动。
|
|
13
|
+
// 支持虚拟声卡需要添加此开关
|
|
14
|
+
app.commandLine.appendSwitch('--no-sandbox');
|
|
15
|
+
|
|
16
|
+
ipcMain.on(RENDER_TO_MAIN_MESG_TYPE.PLASO_INIT_LOG_PATH, function (e, logFilePath) {
|
|
17
|
+
app.setPath('crashDumps', logFilePath);
|
|
18
|
+
crashReporter.start({ submitURL: '', uploadToServer: false });
|
|
19
|
+
});
|
|
20
|
+
} catch (e) {
|
|
21
|
+
console.error(e);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function initRemoteMain(remoteMain) {
|
|
26
|
+
const { initRemoteMain } = require('@plasosdk/winproxy');
|
|
27
|
+
if (remoteMain) initRemoteMain(remoteMain);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = {
|
|
31
|
+
initRemoteMain: initRemoteMain,
|
|
32
|
+
};
|