Fix window reference error with SSR (#348)
This commit is contained in:
parent
a9adc2640c
commit
3257ac89b9
1 changed files with 6 additions and 3 deletions
|
@ -74,10 +74,13 @@ function registerStudioBundle() {
|
||||||
export {default as ToolbarDropdownSelect} from './uiComponents/toolbar/ToolbarDropdownSelect'
|
export {default as ToolbarDropdownSelect} from './uiComponents/toolbar/ToolbarDropdownSelect'
|
||||||
|
|
||||||
import {notify} from '@theatre/studio/notify'
|
import {notify} from '@theatre/studio/notify'
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
window[globalVariableNames.notifications] = {
|
window[globalVariableNames.notifications] = {
|
||||||
notify,
|
notify,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type {IScrub} from '@theatre/studio/Scrub'
|
export type {IScrub} from '@theatre/studio/Scrub'
|
||||||
export type {
|
export type {
|
||||||
|
|
Loading…
Reference in a new issue