mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-10 10:48:50 +01:00
🎨 pnpm lint
This commit is contained in:
parent
e5b799b6c5
commit
3379ba2717
2 changed files with 2 additions and 2 deletions
|
|
@ -153,7 +153,7 @@ export const isWin11 = async () => {
|
|||
|
||||
export const isWindows = () => {
|
||||
return navigator.platform.toUpperCase().indexOf("WIN") > -1;
|
||||
}
|
||||
};
|
||||
|
||||
export const isInAndroid = () => {
|
||||
return window.siyuan.config.system.container === "android" && window.JSAndroid;
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ export const isLocalPath = (link: string) => {
|
|||
const colonIdx = link.indexOf(":");
|
||||
return 1 === colonIdx; // 冒号前面只有一个字符认为是 Windows 盘符而不是网络协议
|
||||
}
|
||||
return link.startsWith("/")
|
||||
return link.startsWith("/");
|
||||
};
|
||||
|
||||
export const pathPosix = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue