mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
short arrow functions
This commit is contained in:
parent
dede5f57af
commit
5361146227
111 changed files with 282 additions and 282 deletions
|
@ -103,7 +103,7 @@ nativeTheme.on('updated', () => {
|
|||
function createWindow () {
|
||||
mainWindow = WindowManager.createMain({ route: Util.getRouteFromUrl(deeplinkingUrl), isChild: false });
|
||||
|
||||
mainWindow.on('close', (e) => {
|
||||
mainWindow.on('close', e => {
|
||||
Util.log('info', 'closeMain: ' + app.isQuiting);
|
||||
|
||||
if (app.isQuiting) {
|
||||
|
@ -114,7 +114,7 @@ function createWindow () {
|
|||
|
||||
if (mainWindow.isFullScreen()) {
|
||||
mainWindow.setFullScreen(false);
|
||||
mainWindow.once('leave-full-screen', () => { mainWindow.hide(); });
|
||||
mainWindow.once('leave-full-screen', () => mainWindow.hide());
|
||||
} else {
|
||||
mainWindow.hide();
|
||||
};
|
||||
|
@ -182,7 +182,7 @@ app.on('second-instance', (event, argv) => {
|
|||
mainWindow.focus();
|
||||
});
|
||||
|
||||
app.on('before-quit', (e) => {
|
||||
app.on('before-quit', e => {
|
||||
Util.log('info', 'before-quit');
|
||||
|
||||
if (app.isQuiting) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue