mirror of
https://github.com/frappe/books.git
synced 2025-02-08 15:08:29 +00:00
fix: net::ERR_HTTP2_PROTOCOL_ERROR
This commit is contained in:
parent
075f783ffe
commit
38505c2a4c
9
main.ts
9
main.ts
@ -4,7 +4,7 @@ import {
|
|||||||
app,
|
app,
|
||||||
BrowserWindow,
|
BrowserWindow,
|
||||||
BrowserWindowConstructorOptions,
|
BrowserWindowConstructorOptions,
|
||||||
protocol,
|
protocol
|
||||||
} from 'electron';
|
} from 'electron';
|
||||||
import Store from 'electron-store';
|
import Store from 'electron-store';
|
||||||
import { autoUpdater } from 'electron-updater';
|
import { autoUpdater } from 'electron-updater';
|
||||||
@ -41,6 +41,13 @@ export class Main {
|
|||||||
autoUpdater.logger = console;
|
autoUpdater.logger = console;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/electron-userland/electron-builder/issues/4987
|
||||||
|
app.commandLine.appendSwitch('disable-http2');
|
||||||
|
autoUpdater.requestHeaders = {
|
||||||
|
'Cache-Control':
|
||||||
|
'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0',
|
||||||
|
};
|
||||||
|
|
||||||
Store.initRenderer();
|
Store.initRenderer();
|
||||||
|
|
||||||
this.registerListeners();
|
this.registerListeners();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user