mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
🚨
This commit is contained in:
parent
49fcac3a50
commit
64ccd06dd4
2 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue