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:
parent
37f8137c7b
commit
0e95017d71
4 changed files with 25 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue