fix(studio): guard __STUDIO_VERSION__ reference for dev server without restart

This commit is contained in:
Miguel Ángel
2026-05-20 17:27:40 -04:00
parent 2bd16a5d3e
commit 28fdd6181d
+1 -1
View File
@@ -48,7 +48,7 @@ function isEnabled(): boolean {
function getSessionProperties(): EventProperties {
return {
studio_version: __STUDIO_VERSION__,
studio_version: typeof __STUDIO_VERSION__ !== "undefined" ? __STUDIO_VERSION__ : "dev",
screen_width: window.screen?.width,
screen_height: window.screen?.height,
viewport_width: window.innerWidth,