diff --git a/Plugins/Wox.Plugin.WebSearch/Commands/SearchWeb.cs b/Plugins/Wox.Plugin.WebSearch/Commands/SearchWeb.cs
deleted file mode 100644
index 7c2cc31813..0000000000
--- a/Plugins/Wox.Plugin.WebSearch/Commands/SearchWeb.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Diagnostics;
-using System.IO;
-using System.Linq;
-
-namespace Wox.Plugin.WebSearch.Commands
-{
- internal static class SearchWeb
- {
- /// Opens search in a new browser. If no browser path is passed in then Chrome is used.
- /// Leave browser path blank to use Chrome.
- ///
- internal static void NewBrowserWindow(this string url, string browserPath)
- {
- var browserExecutableName = browserPath?
- .Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None)
- .Last();
-
- var browser = string.IsNullOrEmpty(browserExecutableName) ? "chrome" : browserPath;
-
- // Internet Explorer will open url in new browser window, and does not take the --new-window parameter
- var browserArguements = browserExecutableName == "iexplore.exe" ? url : "--new-window " + url;
-
- Process.Start(browser, browserArguements);
- }
- }
-}
diff --git a/Plugins/Wox.Plugin.WebSearch/Main.cs b/Plugins/Wox.Plugin.WebSearch/Main.cs
index 1df937d564..ea7720329f 100644
--- a/Plugins/Wox.Plugin.WebSearch/Main.cs
+++ b/Plugins/Wox.Plugin.WebSearch/Main.cs
@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using System.Windows.Controls;
using Wox.Infrastructure;
using Wox.Infrastructure.Storage;
-using Wox.Plugin.WebSearch.Commands;
+using Wox.Plugin.SharedCommands;
namespace Wox.Plugin.WebSearch
{
diff --git a/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj b/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj
index ae06a9f3c4..858b6fd433 100644
--- a/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj
+++ b/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj
@@ -58,7 +58,6 @@
Properties\SolutionAssemblyInfo.cs
-
diff --git a/Wox.Plugin/SharedCommands/SearchWeb.cs b/Wox.Plugin/SharedCommands/SearchWeb.cs
index 7c2cc31813..0dc03ee6d5 100644
--- a/Wox.Plugin/SharedCommands/SearchWeb.cs
+++ b/Wox.Plugin/SharedCommands/SearchWeb.cs
@@ -3,14 +3,14 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
-namespace Wox.Plugin.WebSearch.Commands
+namespace Wox.Plugin.SharedCommands
{
- internal static class SearchWeb
+ public static class SearchWeb
{
/// Opens search in a new browser. If no browser path is passed in then Chrome is used.
/// Leave browser path blank to use Chrome.
///
- internal static void NewBrowserWindow(this string url, string browserPath)
+ public static void NewBrowserWindow(this string url, string browserPath)
{
var browserExecutableName = browserPath?
.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None)