1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 14:07:01 +09:00
This commit is contained in:
Andrew Simachev 2024-01-09 11:22:22 +01:00
commit bd72da4759
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
190 changed files with 6971 additions and 3511 deletions

View file

@ -1,4 +1,5 @@
const { app, shell, BrowserWindow } = require('electron');
const { is } = require('electron-util');
const keytar = require('keytar');
const { download } = require('electron-dl');
@ -122,7 +123,7 @@ class Api {
};
updateConfirm (win) {
this.exit(win, true);
this.exit(win, '', true);
};
updateCancel (win) {
@ -191,6 +192,12 @@ class Api {
this.setConfig(win, { languages });
};
setBadge (win, t) {
if (is.macos) {
app.dock.setBadge(t);
};
};
};
module.exports = new Api();