Skip to content

Commit faf8ab5

Browse files
committed
Improve code quality & Fix typos
1 parent 246910c commit faf8ab5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ public static void OpenInBrowserWindow(this string url, string browserPath = "",
5252
var browser = string.IsNullOrEmpty(browserExecutableName) ? "chrome" : browserPath;
5353

5454
// Internet Explorer will open url in new browser window, and does not take the --new-window parameter
55-
var browserArguements = (browserExecutableName == "iexplore.exe" ? "" : "--new-window ")
55+
var browserArguments = (browserExecutableName == "iexplore.exe" ? "" : "--new-window ")
5656
+ (inPrivate ? $"{privateArg} " : "")
5757
+ (string.IsNullOrWhiteSpace(extraArgs) ? "" : $"{extraArgs} ")
5858
+ url;
5959

6060
var psi = new ProcessStartInfo
6161
{
6262
FileName = browser,
63-
Arguments = browserArguements,
63+
Arguments = browserArguments,
6464
UseShellExecute = true
6565
};
6666

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,9 @@ private void OpenUri(Uri uri, bool? inPrivate = null, bool forceBrowser = false)
464464
catch (Exception e)
465465
{
466466
var tabOrWindow = browserInfo.OpenInTab ? "tab" : "window";
467-
string includesExtraArgs = string.IsNullOrWhiteSpace(browserInfo.ExtraArgs)
467+
var includesExtraArgs = string.IsNullOrWhiteSpace(browserInfo.ExtraArgs)
468468
? ""
469469
: ", [including omitted Extra Args]";
470-
471470
LogException(ClassName, $"Failed to open URL in browser {tabOrWindow}: {path}, {inPrivate ?? browserInfo.EnablePrivate}, {browserInfo.PrivateArg}{includesExtraArgs}", e);
472471
ShowMsgError(
473472
Localize.errorTitle(),

0 commit comments

Comments
 (0)