mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat(nbstore): improve nbstore (#9512)
This commit is contained in:
3
packages/common/env/src/ua-helper.ts
vendored
3
packages/common/env/src/ua-helper.ts
vendored
@@ -32,6 +32,9 @@ export class UaHelper {
|
||||
}
|
||||
|
||||
private isStandaloneMode() {
|
||||
if (typeof window === 'undefined') {
|
||||
return false;
|
||||
}
|
||||
if ('standalone' in window.navigator) {
|
||||
return !!window.navigator.standalone;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user