mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: remove dependencies in @affine/debug (#2708)
This commit is contained in:
@@ -20,7 +20,7 @@ export interface PageViewDBV1 extends DBSchema {
|
||||
}
|
||||
|
||||
const pageViewDBPromise: Promise<IDBPDatabase<PageViewDBV1>> =
|
||||
environment.isServer
|
||||
typeof window === 'undefined'
|
||||
? // never resolve in SSR
|
||||
new Promise<any>(() => {})
|
||||
: openDB<PageViewDBV1>('page-view', 1, {
|
||||
|
||||
Reference in New Issue
Block a user