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:
parent
075f783ffe
commit
38505c2a4c
9
main.ts
9
main.ts
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user