fix version handling

This commit is contained in:
Nystik
2026-03-12 22:46:53 +01:00
parent 1e2971cea0
commit 168024ea4f
7 changed files with 34 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ const listeners = new Map();
const syncHandlers = {
vault: () => window.__vaultConfig || { id: "default-vault", path: "/" },
version: () => "1.8.9",
version: () => window.__obsidianVersion || "0.0.0",
"is-dev": () => false,
"file-url": () =>
"/vault-files/" + encodeURIComponent(window.__currentVaultId || "") + "/",