git.iko.soy/rowtype-yoga/purescript-tauri
on main help sign in
11 lines 517 B history raw
1-- | Narrow bindings to the official Tauri 2 APIs. Importing these modules is
2-- | safe in a normal browser; native operations still require a Tauri host.
3-- | The application must register the Rust dialog/fs plugins and grant only
4-- | the command permissions and file scopes it needs. No capability is added
5-- | or bypassed by this library.
6module Tauri (isTauri) where
8import Effect (Effect)
10-- | Query the official host flag before selecting a native application host.
11foreign import isTauri :: Effect Boolean