mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
d4f5918c4e
commit
292cd32a0b
1 changed files with 5 additions and 2 deletions
|
|
@ -221,18 +221,21 @@ export const about = {
|
|||
updateElement.innerHTML = `<svg><use xlink:href="#iconRefresh"></use></svg>${window.siyuan.languages.checkUpdate}`;
|
||||
});
|
||||
});
|
||||
/// #if !BROWSER
|
||||
about.element.querySelectorAll('[data-type="open"]').forEach(item => {
|
||||
item.addEventListener("click", () => {
|
||||
const url = item.getAttribute("data-url");
|
||||
/// #if !BROWSER
|
||||
if (url.startsWith("http")) {
|
||||
shell.openExternal(url);
|
||||
} else {
|
||||
shell.openPath(url);
|
||||
}
|
||||
/// #else
|
||||
window.open(url);
|
||||
/// #endif
|
||||
});
|
||||
});
|
||||
/// #endif
|
||||
|
||||
about.element.querySelector("#authCode").addEventListener("click", () => {
|
||||
setAccessAuthCode();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue