From 7f6594654c31f8e90d8cab6258e2968de401fdf7 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:12:47 -0800 Subject: [PATCH] docs: fix grammar in `app.relaunch` docs (#44942) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Niklas Wenzel --- docs/api/app.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/api/app.md b/docs/api/app.md index 99b85e43e74a..a93348469d0f 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -514,20 +514,20 @@ and `will-quit` events will not be emitted. * `args` string[] (optional) * `execPath` string (optional) -Relaunches the app when current instance exits. +Relaunches the app when the current instance exits. By default, the new instance will use the same working directory and command line -arguments with current instance. When `args` is specified, the `args` will be -passed as command line arguments instead. When `execPath` is specified, the -`execPath` will be executed for relaunch instead of current app. +arguments as the current instance. When `args` is specified, the `args` will be +passed as the command line arguments instead. When `execPath` is specified, the +`execPath` will be executed for the relaunch instead of the current app. -Note that this method does not quit the app when executed, you have to call +Note that this method does not quit the app when executed. You have to call `app.quit` or `app.exit` after calling `app.relaunch` to make the app restart. -When `app.relaunch` is called for multiple times, multiple instances will be -started after current instance exited. +When `app.relaunch` is called multiple times, multiple instances will be +started after the current instance exits. -An example of restarting current instance immediately and adding a new command +An example of restarting the current instance immediately and adding a new command line argument to the new instance: ```js