mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-18 14:47:43 +00:00
implement first Electron-API Bridge functions - Add little sample in WebApp
This commit is contained in:
@@ -18,6 +18,12 @@ namespace ElectronNET.WebApp.Controllers
|
||||
App.IpcMain.Send("Goodbye", "Elephant!");
|
||||
});
|
||||
|
||||
App.IpcMain.On("GetPath", async (args) =>
|
||||
{
|
||||
string pathName = await App.GetPathAsync(PathName.pictures);
|
||||
App.IpcMain.Send("GetPathComplete", pathName);
|
||||
});
|
||||
|
||||
return View();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user