1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

code review

This commit is contained in:
Andrew Simachev 2025-01-24 15:09:25 +01:00
parent cdbf3027d2
commit e1eb0c36af
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -154,13 +154,13 @@ class WindowManager {
alwaysOnTop: true,
focusable: true,
skipTaskbar: true,
});
win.setVisibleOnAllWorkspaces(true, {visibleOnFullScreen: true});
win.loadURL('file://' + path.join(Util.appPath, 'dist', 'challenge', `index.html`));
win.setMenu(null);
win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true });
win.loadURL('file://' + path.join(Util.appPath, 'dist', 'challenge', 'index.html'));
win.setMenu(null);
win.showInactive(); // show inactive to prevent focus loose from other app
win.webContents.once('did-finish-load', () => {
win.webContents.postMessage('challenge', options);
});