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

fix about version

This commit is contained in:
Andrew Simachev 2021-10-12 13:57:23 +03:00
parent 37f8137c7b
commit 0e95017d71
4 changed files with 25 additions and 12 deletions

View file

@ -384,10 +384,12 @@ function openAboutWindow () {
titleBarStyle: 'hidden-inset',
show: true,
icon: path.join(__dirname, 'electron', 'icon.png'),
webPreferences: {},
webPreferences: {
nodeIntegration: true,
},
});
window.loadURL('file://' + path.join(__dirname, 'electron', 'about.html'));
window.loadURL('file://' + path.join(__dirname, 'electron', 'about.html?version=' + version));
window.once('closed', () => {
window = null;
@ -405,6 +407,7 @@ function openAboutWindow () {
window.once('ready-to-show', () => {
window.show();
window.openDevTools();
});
window.setMenu(null);