Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:rotating_light:

Vanessa64ccd06dd42b
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index 5a7d129b35..6fd8e9ce0d 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -181,12 +181,12 @@ export class Breadcrumb {
click: async () => {
/// #if !BROWSER
if (window.siyuan.config.system.os === "darwin") {
- const status = systemPreferences.getMediaAccessStatus('microphone')
+ const status = systemPreferences.getMediaAccessStatus("microphone");
if (["denied", "restricted", "unknown"].includes(status)) {
showMessage(window.siyuan.languages.microphoneDenied);
return;
} else if (status === "not-determined") {
- const isAccess = await systemPreferences.askForMediaAccess('microphone')
+ const isAccess = await systemPreferences.askForMediaAccess("microphone");
if (!isAccess) {
showMessage(window.siyuan.languages.microphoneNotAccess);
return;
@@ -223,7 +223,7 @@ export class Breadcrumb {
uploadFiles(protyle, [file]);
} else {
hideMessage(this.messageId);
- this.startRecord(protyle)
+ this.startRecord(protyle);
}
}
}).element);
diff --git a/app/src/util/assets.ts b/app/src/util/assets.ts
index b8712c9751..2645b472a3 100644
--- a/app/src/util/assets.ts
+++ b/app/src/util/assets.ts
@@ -126,10 +126,11 @@ export const addGA = () => {
if (!window.siyuan.config.system.disableGoogleAnalytics) {
addScript("https://www.googletagmanager.com/gtag/js?id=G-L7WEXVQCR9", "gaScript");
window.dataLayer = window.dataLayer || [];
+ /*eslint-disable */
const gtag = function (...args: any[]) {
- // eslint-disable-next-line prefer-rest-params
window.dataLayer.push(arguments);
};
+ /*eslint-enable */
gtag("js", new Date());
gtag("config", "G-L7WEXVQCR9");
const para = {