Skip to content

Commit

Permalink
fix: access location outside of browser
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 committed Mar 5, 2025
1 parent 2798b2d commit 54002b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {isCoreUiRenderingContext, type StudioRenderingContext} from './types'
// However, the URL query string is liable to be lost during Studio's lifecycle (for example, when
// the user navigates to a different tool). Therefore, the URL query string is captured as soon as
// this code is evaluated, and later referenced when a consumer subscribes to the store.
const INITIAL_URL_SEARCH = location?.search
const INITIAL_URL_SEARCH = typeof location === 'object' ? location.search : ''

const CORE_UI_MODE_NAME = 'core-ui'
const CORE_UI_CONTEXT_SEARCH_PARAM = '_context'
Expand Down

0 comments on commit 54002b7

Please sign in to comment.