mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix: remove dependencies in @affine/debug (#2708)
(cherry picked from commit cd5c4b5cb7)
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