mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Bug with SetUserAgent #363
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DiefBell on GitHub (Jul 23, 2019).
Originally assigned to: @GregorBiswanger on GitHub.
Using the following code, which according to what I can find online, should but doesn't set the UserAgent header accordingly, and instead uses the default UserAgent string.
var mainWindow = await Electron.WindowManager.CreateWindowAsync(options); mainWindow.WebContents.Session.SetUserAgent("ModX"); mainWindow.OnReadyToShow += () => { mainWindow.Show(); };