mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix: npm rpc: set default options for startDeltaChat
this fixes an "undefined" error
This commit is contained in:
@@ -123,7 +123,14 @@ export async function getRPCServerPath(
|
||||
import { StdioDeltaChat } from "@deltachat/jsonrpc-client";
|
||||
|
||||
/** @type {import("./index").FnTypes.startDeltaChat} */
|
||||
export async function startDeltaChat(directory, options) {
|
||||
export async function startDeltaChat(
|
||||
directory,
|
||||
options = {
|
||||
skipSearchInPath: false,
|
||||
disableEnvPath: false,
|
||||
muteStdErr: false,
|
||||
}
|
||||
) {
|
||||
const pathToServerBinary = await getRPCServerPath(options);
|
||||
const server = spawn(pathToServerBinary, {
|
||||
env: {
|
||||
|
||||
Reference in New Issue
Block a user