mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
further refactoring process
This commit is contained in:
parent
3e1646723e
commit
1cc984b428
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
const electron = require('electron');
|
||||
const { app, BrowserWindow, ipcMain, session, nativeTheme } = require('electron');
|
||||
const { app, BrowserWindow, session, nativeTheme } = require('electron');
|
||||
const { is, fixPathForAsarUnpack } = require('electron-util');
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
|
@ -34,7 +34,7 @@ if (process.defaultApp) {
|
|||
};
|
||||
|
||||
let deeplinkingUrl = '';
|
||||
let waitLibraryPromise;
|
||||
let waitLibraryPromise = null;
|
||||
let mainWindow = null;
|
||||
let csp = [
|
||||
"default-src 'self' 'unsafe-eval'",
|
||||
|
@ -175,8 +175,6 @@ app.on('before-quit', (e) => {
|
|||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
console.log(WindowManager.list.size, mainWindow);
|
||||
|
||||
WindowManager.list.size ? mainWindow.show() : createMainWindow();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue