2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

fix: net::ERR_HTTP2_PROTOCOL_ERROR

This commit is contained in:
18alantom 2022-08-23 16:51:16 +05:30
parent 075f783ffe
commit 38505c2a4c

View File

@ -4,7 +4,7 @@ import {
app,
BrowserWindow,
BrowserWindowConstructorOptions,
protocol,
protocol
} from 'electron';
import Store from 'electron-store';
import { autoUpdater } from 'electron-updater';
@ -41,6 +41,13 @@ export class Main {
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();
this.registerListeners();