mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-12 13:44:34 +00:00
Use 3s timeout for GetUserAgentAsync and updat test
This commit is contained in:
@@ -388,7 +388,7 @@ public class WebContents : ApiBase
|
||||
/// Returns string - The user agent for this web page.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Task<string> GetUserAgentAsync() => InvokeAsync<string>();
|
||||
public Task<string> GetUserAgentAsync() => InvokeAsyncWithTimeout<string>(3000);
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the user agent for this web page.
|
||||
|
||||
Reference in New Issue
Block a user