Move /platform/detection vars into /env (#9707)
* Add platform vars to env * Replace /platform/detection with /env
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import {AtUri} from '@atproto/api'
|
||||
|
||||
import {BSKY_FEED_OWNER_DIDS} from '#/lib/constants'
|
||||
import {isWeb} from '#/platform/detection'
|
||||
import {type UsePreferencesQueryResponse} from '#/state/queries/preferences'
|
||||
import {IS_WEB} from '#/env'
|
||||
|
||||
let debugTopics = ''
|
||||
if (isWeb && typeof window !== 'undefined') {
|
||||
if (IS_WEB && typeof window !== 'undefined') {
|
||||
const params = new URLSearchParams(window.location.search)
|
||||
debugTopics = params.get('debug_topics') ?? ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user