Skip to content

Commit 78b59f6

Browse files
committed
ElectronNET.WebApp: Adjust controllers for API changes
1 parent 667a1b2 commit 78b59f6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/ElectronNET.WebApp/Controllers/CrashHangController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public IActionResult Index()
1212
{
1313
Electron.IpcMain.On("process-crash", async (args) =>
1414
{
15-
string viewPath = $"http://localhost:{BridgeSettings.WebPort}/crashhang/processcrash";
15+
string viewPath = $"http://localhost:{ElectronNetRuntime.AspNetWebPort}/crashhang/processcrash";
1616

1717
var browserWindow = await Electron.WindowManager.CreateWindowAsync(viewPath);
1818
browserWindow.WebContents.OnCrashed += async (killed) =>
@@ -38,7 +38,7 @@ public IActionResult Index()
3838

3939
Electron.IpcMain.On("process-hang", async (args) =>
4040
{
41-
string viewPath = $"http://localhost:{BridgeSettings.WebPort}/crashhang/processhang";
41+
string viewPath = $"http://localhost:{ElectronNetRuntime.AspNetWebPort}/crashhang/processhang";
4242

4343
var browserWindow = await Electron.WindowManager.CreateWindowAsync(viewPath);
4444
browserWindow.OnUnresponsive += async () =>

src/ElectronNET.WebApp/Controllers/DialogsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public IActionResult Index()
2727

2828
Electron.IpcMain.On("error-dialog", (args) =>
2929
{
30-
Electron.Dialog.ShowErrorBox("An Error Message", "Demonstrating an error message.");
30+
Electron.Dialog.ShowErrorBox("An Error Message", "Demonstrating a really great message.");
3131
});
3232

3333
Electron.IpcMain.On("information-dialog", async (args) =>

src/ElectronNET.WebApp/Controllers/WindowsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public IActionResult Index()
1111
{
1212
if (HybridSupport.IsElectronActive)
1313
{
14-
string viewPath = $"http://localhost:{BridgeSettings.WebPort}/windows/demowindow";
14+
string viewPath = $"http://localhost:{ElectronNetRuntime.AspNetWebPort}/windows/demowindow";
1515

1616
Electron.IpcMain.On("new-window", async (args) =>
1717
{

0 commit comments

Comments
 (0)