Skip to content

getCurrentPathCompatibilityPlatform

The platform the plugin is running on, or null on a platform with no profile.

Used only to seed the settings defaults, so that a fresh install reports on the vault in front of it without the user configuring anything first.

Import:

import { getCurrentPathCompatibilityPlatform } from '@mnaoumov/obsidian-lib/path-compatibility';

Signature:

function getCurrentPathCompatibilityPlatform(): PathCompatibilityPlatform | null

Returns: PathCompatibilityPlatform | null — The current platform, or null.