mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
remove screen from electron startup to prevent error
This commit is contained in:
parent
2de8c8b5ba
commit
0f927e336b
1 changed files with 2 additions and 3 deletions
|
@ -162,7 +162,6 @@ function initTray () {
|
|||
};
|
||||
|
||||
function createWindow () {
|
||||
const { width, height } = electron.screen.getPrimaryDisplay().workAreaSize;
|
||||
const image = nativeImage.createFromPath(path.join(__dirname, '/electron/icon512x512.png'));
|
||||
|
||||
session.defaultSession.webRequest.onHeadersReceived((details, callback) => {
|
||||
|
@ -177,8 +176,8 @@ function createWindow () {
|
|||
initTray();
|
||||
|
||||
let state = windowStateKeeper({
|
||||
defaultWidth: width,
|
||||
defaultHeight: height
|
||||
defaultWidth: 800,
|
||||
defaultHeight: 600
|
||||
});
|
||||
|
||||
let param = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue