Return the normalised platform for the current OS.
Calls the Tauri OS plugin bridge. Tauri 2's plugin-os exposes the
plugin:os|platform command which returns "macos", "windows",
or "linux". If the invoke fails (no Tauri runtime / unit test),
falls back to navigator.userAgent heuristics.
Return the normalised platform for the current OS.
Calls the Tauri OS plugin bridge. Tauri 2's plugin-os exposes the
plugin:os|platformcommand which returns"macos","windows", or"linux". If the invoke fails (no Tauri runtime / unit test), falls back tonavigator.userAgentheuristics.