update(docs): fix view height

This commit is contained in:
Braks
2021-11-06 08:54:35 +01:00
parent 67876cdd1b
commit ae0772b6d4
42 changed files with 91 additions and 220 deletions
+6
View File
@@ -0,0 +1,6 @@
import { ssrWindow } from 'ssr-window'
export default (): Window & typeof globalThis & { chrome?: any } => {
if (typeof window !== 'undefined') return window
else return ssrWindow as any
}