@daisy/ace-axe-runner-electron 1.2.5 → 1.2.6-alpha.5
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/lib/cli.js +19 -0
- package/lib/init.js +558 -254
- package/lib/selfsigned.js +31 -31
- package/package.json +5 -7
- package/src/cli.js +19 -0
- package/src/init.js +517 -200
- package/src/selfsigned.js +30 -30
package/lib/cli.js
CHANGED
|
@@ -5,6 +5,9 @@ const app = electron.app;
|
|
|
5
5
|
// const ipcMain = electron.ipcMain;
|
|
6
6
|
// const ipcRenderer = electron.ipcRenderer;
|
|
7
7
|
|
|
8
|
+
// NO_HTTP_ADD
|
|
9
|
+
const protocol = electron.protocol;
|
|
10
|
+
|
|
8
11
|
// Removes the deprecation warning message in the console
|
|
9
12
|
// https://github.com/electron/electron/issues/18397
|
|
10
13
|
// app.allowRendererProcessReuse = true;
|
|
@@ -31,6 +34,22 @@ const ACE_LOG_PREFIX = "[ACE-AXE]";
|
|
|
31
34
|
|
|
32
35
|
if (LOG_DEBUG) console.log(`${ACE_LOG_PREFIX} axeRunner CLI launch...`);
|
|
33
36
|
|
|
37
|
+
// NO_HTTP_ADD
|
|
38
|
+
const ACE_ELECTRON_HTTP_PROTOCOL = "acehttps";
|
|
39
|
+
// app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");
|
|
40
|
+
protocol.registerSchemesAsPrivileged([{
|
|
41
|
+
privileges: {
|
|
42
|
+
allowServiceWorkers: false,
|
|
43
|
+
bypassCSP: false,
|
|
44
|
+
corsEnabled: true,
|
|
45
|
+
secure: true,
|
|
46
|
+
standard: true,
|
|
47
|
+
stream: true,
|
|
48
|
+
supportFetchAPI: true
|
|
49
|
+
},
|
|
50
|
+
scheme: ACE_ELECTRON_HTTP_PROTOCOL
|
|
51
|
+
}]);
|
|
52
|
+
|
|
34
53
|
// let win;
|
|
35
54
|
// app.whenReady().then(() => {
|
|
36
55
|
app.on('ready', async () => {
|