Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blazor] Call .NET from JS - OperatingSystem.IsBrowser() #33846

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

hakenr
Copy link
Contributor

@hakenr hakenr commented Oct 13, 2024

OperatingSystem.IsBrowser() API was introduced in .NET 5.


Internal previews

📄 File 🔗 Preview link
aspnetcore/blazor/javascript-interoperability/call-dotnet-from-javascript.md aspnetcore/blazor/javascript-interoperability/call-dotnet-from-javascript

@hakenr hakenr requested a review from guardrex as a code owner October 13, 2024 23:25
@guardrex guardrex self-assigned this Oct 14, 2024
@guardrex
Copy link
Collaborator

Thanks @hakenr! 👍

@MackinnonBuck ... Note that the Basic Test App, which was the source of the docs example, didn't receive an update to OperatingSystem.IsBrowser() ...

https://github.com/dotnet/AspNetCore/blob/main/src/Components/test/testassets/BasicTestApp/InteropComponent.razor#L75

@guardrex guardrex merged commit 0965570 into dotnet:main Oct 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants