update at 2025-10-10 17:00:09
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* 作用:通用工具函数集合(事件、版本、字符串处理等)。
|
||||
*/
|
||||
|
||||
import { App, sanitizeHTMLToDom, requestUrl, Platform } from "obsidian";
|
||||
import { App, sanitizeHTMLToDom, Platform } from "obsidian";
|
||||
import * as postcss from "./postcss/postcss"; // 内置 PostCSS runtime,解析主题 CSS 用于内联样式
|
||||
|
||||
let PluginVersion = "0.0.0";
|
||||
@@ -185,10 +185,7 @@ export function applyCSS(html: string, css: string) {
|
||||
}
|
||||
|
||||
export function uevent(name: string) {
|
||||
const url = `https://u.sunboshi.tech/event?name=${name}&platform=${PlugPlatform}&v=${PluginVersion}`;
|
||||
requestUrl(url).then().catch(error => {
|
||||
console.error("Failed to send event: " + url, error);
|
||||
});
|
||||
console.debug(`[uevent] ${name} @${PlugPlatform} v${PluginVersion}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user