1
0
Fork 0
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:
Andrew Simachev 2023-08-15 12:47:14 +02:00
parent 254b68f4d8
commit 030da0167a
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
4 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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 = '';
};

View file

@ -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';

View file

@ -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