Fix API usage

This commit is contained in:
Chentao Yang 2026-06-23 23:07:50 +02:00
parent 5a8a72c0bc
commit e557c7210b
5 changed files with 8 additions and 6 deletions

View file

@ -2,7 +2,7 @@
"id": "things-toolkit",
"name": "Things Toolkit",
"description": "Sync Things3 completions into daily notes with review stats and privacy-aware macOS access.",
"version": "1.6.5",
"version": "1.6.6",
"author": "yangcht",
"authorUrl": "https://github.com/yangcht",
"isDesktopOnly": false,

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "obsidian-things-toolkit-plugin",
"version": "1.6.5",
"version": "1.6.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "obsidian-things-toolkit-plugin",
"version": "1.6.5",
"version": "1.6.6",
"license": "MIT",
"dependencies": {
"@obsidian-typings/obsidian-public-latest": "6.16.0",

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-things-toolkit-plugin",
"version": "1.6.5",
"version": "1.6.6",
"type": "module",
"description": "Sync Things3 completions into Obsidian daily notes with review stats",
"author": "yangcht",

View file

@ -1,3 +1,4 @@
import { Platform } from "obsidian";
import type { App, TFile } from "obsidian";
import { getEditorForFile } from "./fileUtils";
@ -37,7 +38,7 @@ export function groupBy<T>(
}
export function isMacOS(): boolean {
return /Mac|iPhone|iPad|iPod/.test(navigator.platform);
return Platform.isMacOS;
}
export async function updateSection(

View file

@ -10,5 +10,6 @@
"1.6.2": "1.13.1",
"1.6.3": "1.13.1",
"1.6.4": "1.13.1",
"1.6.5": "1.13.1"
"1.6.5": "1.13.1",
"1.6.6": "1.13.1"
}