Bluesky app fork with some witchin' additions 💫

Merge pull request #1260 from bluesky-social/eric/fix-window

fix bad reference on native

authored by

Eric Bailey and committed by
GitHub
acad8cb4 b4931fa1

+2 -1
+2 -1
src/state/models/ui/shell.ts
··· 8 8 import {ListModel} from '../content/list' 9 9 import {GalleryModel} from '../media/gallery' 10 10 import {StyleProp, ViewStyle} from 'react-native' 11 + import {isWeb} from 'platform/detection' 11 12 12 13 export type ColorMode = 'system' | 'light' | 'dark' 13 14 ··· 275 276 setColorMode(mode: ColorMode) { 276 277 this.colorMode = mode 277 278 278 - if (typeof window !== 'undefined') { 279 + if (isWeb && typeof window !== 'undefined') { 279 280 const html = window.document.documentElement 280 281 // remove any other color mode classes 281 282 html.className = html.className.replace(/colorMode--\w+/g, '')