mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
🚨
This commit is contained in:
parent
b0e3efa774
commit
2c36af78bc
14 changed files with 25 additions and 26 deletions
|
|
@ -271,12 +271,12 @@ export class Breadcrumb {
|
|||
click: async () => {
|
||||
/// #if !BROWSER
|
||||
if (window.siyuan.config.system.os === "darwin") {
|
||||
const status = await ipcRenderer.invoke(Constants.SIYUAN_GET, {cmd: "getMicrophone"})
|
||||
const status = await ipcRenderer.invoke(Constants.SIYUAN_GET, {cmd: "getMicrophone"});
|
||||
if (["denied", "restricted", "unknown"].includes(status)) {
|
||||
showMessage(window.siyuan.languages.microphoneDenied);
|
||||
return;
|
||||
} else if (status === "not-determined") {
|
||||
const isAccess = await ipcRenderer.invoke(Constants.SIYUAN_GET, {cmd: "askMicrophone"})
|
||||
const isAccess = await ipcRenderer.invoke(Constants.SIYUAN_GET, {cmd: "askMicrophone"});
|
||||
if (!isAccess) {
|
||||
showMessage(window.siyuan.languages.microphoneNotAccess);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue