There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: wrong OS judgment (#1525)
JimmFly21bfec34027d
diff --git a/packages/env/src/ua-helper.ts b/packages/env/src/ua-helper.tsindex 8abf7727a5..b7fabe9c7d 100644--- a/packages/env/src/ua-helper.ts+++ b/packages/env/src/ua-helper.ts@@ -12,6 +12,7 @@ export function getUaHelper() {(uas.indexOf('android') > -1 || uas.indexOf('linux') > -1)) ||uas.indexOf('adr') > -1;const ios = mobile && !android && /Mac OS/i.test(ua);+ const mac = !mobile && /Mac OS/i.test(ua);const iphone = ios && uas.indexOf('iphone') > -1;const ipad = ios && !iphone;const wx = /MicroMessenger/i.test(ua);@@ -33,6 +34,7 @@ export function getUaHelper() {mobile,android,ios,+ mac,wx,chrome,iphone,@@ -73,7 +75,7 @@ export function getUaHelper() {private initUaFlags() {this.isLinux = this.checkUseragent('linux');- this.isMacOs = this.checkUseragent('ios');+ this.isMacOs = this.checkUseragent('mac');this.isSafari = this.checkUseragent('safari');this.isWindows = this.checkUseragent('win');this.isFireFox = this.checkUseragent('firefox');