isInNativeDesktop() function. For example:
Core Library
Check Access
When using the native-desktop Core Library, it is important to verify whether your application is running inside the native-desktop environment or a regular web browser. The library’s features only work when the application is running inside Native Desktop.
You can perform this check using the
Performing this check is necessary to prevent unexpected errors when the application runs in a normal browser.