mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
small fixes
This commit is contained in:
parent
254b68f4d8
commit
030da0167a
4 changed files with 5 additions and 5 deletions
|
@ -8,6 +8,7 @@ const storage = require('electron-json-storage');
|
|||
const port = process.env.SERVER_PORT;
|
||||
const protocol = 'anytype';
|
||||
const remote = require('@electron/remote/main');
|
||||
const { installNativeMessagingHost } = require('./electron/js/lib/installNativeMessagingHost.js');
|
||||
|
||||
const userPath = app.getPath('userData');
|
||||
const logPath = path.join(userPath, 'logs');
|
||||
|
@ -131,6 +132,8 @@ function createWindow () {
|
|||
MenuManager.initMenu();
|
||||
MenuManager.initTray();
|
||||
|
||||
installNativeMessagingHost();
|
||||
|
||||
ipcMain.handle('Api', (e, id, cmd, args) => {
|
||||
const Api = require('./electron/js/api.js');
|
||||
const win = BrowserWindow.fromId(id);
|
||||
|
|
|
@ -8,7 +8,6 @@ const WindowManager = require('./window.js');
|
|||
const UpdateManager = require('./update.js');
|
||||
const Server = require('./server.js');
|
||||
const Util = require('./util.js');
|
||||
const { installNativeMessagingHost } = require('./installNativeMessagingHost.js');
|
||||
|
||||
const KEYTAR_SERVICE = 'Anytype';
|
||||
|
||||
|
@ -30,8 +29,6 @@ class Api {
|
|||
isPinChecked: this.isPinChecked,
|
||||
languages: win.webContents.session.availableSpellCheckerLanguages,
|
||||
});
|
||||
|
||||
installNativeMessagingHost();
|
||||
win.route = '';
|
||||
};
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ const { existsSync, mkdir, writeFile } = require('fs');
|
|||
const { userInfo, homedir } = require('os');
|
||||
const { app } = require('electron');
|
||||
const path = require('path');
|
||||
const util = require('./util.js');
|
||||
const util = require('../util.js');
|
||||
const { fixPathForAsarUnpack, is } = require('electron-util');
|
||||
|
||||
const APP_NAME = 'com.anytype.anytype_desktop';
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
- This is the native messaging host for the AnyType browser extension.
|
||||
- It enables the web extension to find the open ports of the AnyType application and to start it if it is not running.
|
||||
- It is installed by the Electron script found in electron/js/installNativeMessagingHost.js
|
||||
- It is installed by the Electron script found in electron/js/lib/installNativeMessagingHost.js
|
||||
- for more docs, checkout the webclipper repository: https://github.com/anytypeio/webclipper
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue